Skip to content

Commit 31ffd0c

Browse files
committed
t1512: match the "other" object names
The test creates 16 objects that share the same prefix, and two other objects that do not. Tweak the test so that the other two share the same prefix that is different from the one that is shared by the 16. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4c654f5 commit 31ffd0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t1512-rev-parse-disambiguation.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ test_expect_success 'disambiguate commit-ish' '
9898
'
9999

100100
test_expect_success 'disambiguate commit' '
101-
commit=$(echo "j9xqh" | git commit-tree 0000000000cdc -p 000000000) &&
101+
commit=$(echo "hoaxj" | git commit-tree 0000000000cdc -p 000000000) &&
102102
test $(git rev-parse $commit^) = $(git rev-parse 0000000000e4f)
103103
'
104104

@@ -254,8 +254,8 @@ test_expect_success 'ambiguous commit-ish' '
254254

255255
test_expect_success 'rev-parse --disambiguate' '
256256
# The test creates 16 objects that share the prefix and two
257-
# commits created by commit-tree in earlier tests do not share
258-
# the prefix.
257+
# commits created by commit-tree in earlier tests share a
258+
# different prefix.
259259
git rev-parse --disambiguate=000000000 >actual &&
260260
test $(wc -l <actual) = 16 &&
261261
test "$(sed -e "s/^\(.........\).*/\1/" actual | sort -u)" = 000000000

0 commit comments

Comments
 (0)