mirror of
https://github.com/git/git.git
synced 2025-01-25 00:43:41 +08:00
t/t6*: avoid redundant uses of cat
Signed-off-by: Beat Bolli <dev+git@drbeat.li> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f636d25dc4
commit
edfa63e7f4
@ -670,7 +670,7 @@ test_expect_success 'rev-list W/ --missing=print' '
|
||||
awk -f print_2.awk ls_files_result |
|
||||
sort >expected &&
|
||||
|
||||
for id in `cat expected | sed "s|..|&/|"`
|
||||
for id in `sed "s|..|&/|" expected`
|
||||
do
|
||||
rm r1/.git/objects/$id || return 1
|
||||
done &&
|
||||
|
@ -34,14 +34,14 @@ test_expect_success setup '
|
||||
test_expect_success 'Check "ours" is CRLF' '
|
||||
git reset --hard initial &&
|
||||
git merge side -s ours &&
|
||||
cat file | remove_cr | append_cr >file.temp &&
|
||||
remove_cr <file | append_cr >file.temp &&
|
||||
test_cmp file file.temp
|
||||
'
|
||||
|
||||
test_expect_success 'Check that conflict file is CRLF' '
|
||||
git reset --hard a &&
|
||||
test_must_fail git merge side &&
|
||||
cat file | remove_cr | append_cr >file.temp &&
|
||||
remove_cr <file | append_cr >file.temp &&
|
||||
test_cmp file file.temp
|
||||
'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user