@matheusbsbs / matheus-bagliano / commits / 7187eb1e6a
Fork 0

t8003: make hash size independent

One assertion in this test invokes git with core.abbrev set to "40". Since we're expecting the full hash length, use test_oid to look up the full hash length for the hash in use. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Jul 29, 2020 at 23:14 UTC 7187eb1e6a81b6b8539c1487285ba50621d2a4d3
1 file changed +1 -2
t/t8003-blame-corner-cases.sh
+1 -2
@@ -6,7 +6,6 @@ test_description='git blame corner cases'
6 pick_fc='s/^[0-9a-f^]* *\([^ ]*\) *(\([^ ]*\) .*/\1-\2/'
7
8 test_expect_success setup '
9 -
9 echo A A A A A >one &&
10 echo B B B B B >two &&
11 echo C C C C C >tres &&
@@ -306,7 +305,7 @@ test_expect_success 'blame coalesce' '
305 $oid 1) ABC
306 $oid 2) DEF
307 EOF
309 - git -c core.abbrev=40 blame -s giraffe >actual &&
308 + git -c core.abbrev=$(test_oid hexsz) blame -s giraffe >actual &&
309 test_cmp expect actual
310 '
311