Skip to content

Commit 432282f

Browse files
committed
Merge branch 'ss/t3200-test-zero-oid'
A test now uses the symbolic constant $ZERO_OID instead of 40 "0" to work better with SHA-256 as well as SHA-1. * ss/t3200-test-zero-oid: t3200: replace hardcoded null OID with $ZERO_OID
2 parents 17b9c75 + 30310f3 commit 432282f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t3200-branch.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,8 @@ test_expect_success 'refuse --edit-description on unborn branch for now' '
14941494
'
14951495

14961496
test_expect_success '--merged catches invalid object names' '
1497-
test_must_fail git branch --merged 0000000000000000000000000000000000000000
1497+
test_must_fail git branch --merged $ZERO_OID 2>err &&
1498+
test_grep "must point to a commit" err
14981499
'
14991500

15001501
test_expect_success '--list during rebase' '

0 commit comments

Comments
 (0)