summaryrefslogtreecommitdiff
path: root/t/t5300-pack-object.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-04-11 04:09:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-11 04:09:56 (GMT)
commitc40c1a0df23203f9e05e7c5c01a157d414b37720 (patch)
tree4248695839dd42f3a6107fb0f019bea641018c54 /t/t5300-pack-object.sh
parent103251a318ed960c9574e68ad21d013fca78560b (diff)
parenta4d4e32a700df92ca576ce89110c075b8ce6da75 (diff)
downloadgit-c40c1a0df23203f9e05e7c5c01a157d414b37720.zip
git-c40c1a0df23203f9e05e7c5c01a157d414b37720.tar.gz
git-c40c1a0df23203f9e05e7c5c01a157d414b37720.tar.bz2
Merge branch 'pk/test-avoid-pipe-hiding-exit-status'
Test cleanup. * pk/test-avoid-pipe-hiding-exit-status: test: avoid pipes in git related commands for test
Diffstat (limited to 't/t5300-pack-object.sh')
-rwxr-xr-xt/t5300-pack-object.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh
index 3bac1f2..65ff60f 100755
--- a/t/t5300-pack-object.sh
+++ b/t/t5300-pack-object.sh
@@ -311,8 +311,8 @@ test_expect_success 'unpacking with --strict' '
rm -f .git/index &&
tail -n 10 LIST | git update-index --index-info &&
ST=$(git write-tree) &&
- PACK5=$( git rev-list --objects "$LIST" "$LI" "$ST" | \
- git pack-objects test-5 ) &&
+ git rev-list --objects "$LIST" "$LI" "$ST" >actual &&
+ PACK5=$( git pack-objects test-5 <actual ) &&
PACK6=$( (
echo "$LIST"
echo "$LI"
@@ -358,8 +358,8 @@ test_expect_success 'index-pack with --strict' '
rm -f .git/index &&
tail -n 10 LIST | git update-index --index-info &&
ST=$(git write-tree) &&
- PACK5=$( git rev-list --objects "$LIST" "$LI" "$ST" | \
- git pack-objects test-5 ) &&
+ git rev-list --objects "$LIST" "$LI" "$ST" >actual &&
+ PACK5=$( git pack-objects test-5 <actual ) &&
PACK6=$( (
echo "$LIST"
echo "$LI"