From: brian m. carlson Date: Wed, 29 Jul 2020 23:13:54 +0000 (+0000) Subject: t6100: make hash size independent X-Git-Tag: v2.29.0-rc0~178^2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11b6961f8b232bad9643a867894d34cf1d646ad6;p=thirdparty%2Fgit.git t6100: make hash size independent Instead of hard-coding a constant 40, split the output of rev-list by field. Signed-off-by: brian m. carlson Reviewed-by: Eric Sunshine Signed-off-by: Junio C Hamano --- diff --git a/t/t6100-rev-list-in-order.sh b/t/t6100-rev-list-in-order.sh index b2bb0a7f61..e934bc239c 100755 --- a/t/t6100-rev-list-in-order.sh +++ b/t/t6100-rev-list-in-order.sh @@ -22,7 +22,7 @@ test_expect_success 'setup a commit history with trees, blobs' ' test_expect_success 'rev-list --in-commit-order' ' git rev-list --in-commit-order --objects HEAD >actual.raw && - cut -c 1-40 >actual actual expect.raw <<-\EOF && HEAD^{commit} @@ -49,7 +49,7 @@ test_expect_success 'rev-list --in-commit-order' ' test_expect_success 'rev-list lists blobs and trees after commits' ' git rev-list --objects HEAD >actual.raw && - cut -c 1-40 >actual actual expect.raw <<-\EOF && HEAD^{commit}