From cc032c50f49c20929bc07cf4308455c28facb928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Date: Wed, 11 Sep 2013 13:06:22 +0700 Subject: t1050: replace one instance of show-index with verify-pack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Nicolas Pitre --- t/t1050-large.sh | 7 ++++--- 1 file 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 -- cgit v1.2.1