@@ -313,7 +313,7 @@ test_expect_success 'rename/add handling' '
313
313
# First, check that the bar that appears at stage 3 does not
314
314
# correspond to an individual blob anywhere in history
315
315
#
316
- hash=$(cat out | tr "\0" "\n" | head -n 3 | grep 3.bar | cut -f 2 -d " ") &&
316
+ hash=$(tr "\0" "\n" <out | head -n 3 | grep 3.bar | cut -f 2 -d " ") &&
317
317
git rev-list --objects --all >all_blobs &&
318
318
! grep $hash all_blobs &&
319
319
@@ -380,7 +380,7 @@ test_expect_success SYMLINKS 'rename/add, where add is a mode conflict' '
380
380
# First, check that the bar that appears at stage 3 does not
381
381
# correspond to an individual blob anywhere in history
382
382
#
383
- hash=$(cat out | tr "\0" "\n" | head -n 3 | grep 3.bar | cut -f 2 -d " ") &&
383
+ hash=$(tr "\0" "\n" <out | head -n 3 | grep 3.bar | cut -f 2 -d " ") &&
384
384
git rev-list --objects --all >all_blobs &&
385
385
! grep $hash all_blobs &&
386
386
@@ -630,8 +630,8 @@ test_expect_success 'mod6: chains of rename/rename(1to2) and add/add via collidi
630
630
# conflict entries do not appear as individual blobs anywhere
631
631
# in history.
632
632
#
633
- hash1=$(cat out | tr "\0" "\n" | head | grep 2.four | cut -f 2 -d " ") &&
634
- hash2=$(cat out | tr "\0" "\n" | head | grep 3.two | cut -f 2 -d " ") &&
633
+ hash1=$(tr "\0" "\n" <out | head | grep 2.four | cut -f 2 -d " ") &&
634
+ hash2=$(tr "\0" "\n" <out | head | grep 3.two | cut -f 2 -d " ") &&
635
635
git rev-list --objects --all >all_blobs &&
636
636
! grep $hash1 all_blobs &&
637
637
! grep $hash2 all_blobs &&
0 commit comments