diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-09-11 13:06:22 +0700 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2013-09-13 21:00:31 -0400 |
commit | cc032c50f49c20929bc07cf4308455c28facb928 (patch) | |
tree | 82ca8595e440207afc1f2d5a3da5c5f20a72992b | |
parent | 740931162751fb50d99f98eb7753eb5cdce94172 (diff) | |
download | git-cc032c50f49c20929bc07cf4308455c28facb928.tar.gz |
t1050: replace one instance of show-index with verify-pack
If index v3 (pack v4) is used, show-index does not provide the expected
SHA1 output needed by the test.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
-rwxr-xr-x | t/t1050-large.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/t/t1050-large.sh b/t/t1050-large.sh index fd10528009..5e79abc4eb 100755 --- a/t/t1050-large.sh +++ b/t/t1050-large.sh @@ -93,11 +93,12 @@ test_expect_success 'packsize limit' ' ) | sort >expect && - for pi in .git/objects/pack/pack-*.idx + for pi in .git/objects/pack/pack-*.pack do - git show-index <"$pi" + git verify-pack -v "$pi" done | - sed -e "s/^[0-9]* \([0-9a-f]*\) .*/\1/" | + grep "^[0-9a-f]\{40\}" | + sed -e "s/^\([0-9a-f]\{40\}\) .*/\1/" | sort >actual && test_cmp expect actual |