Skip to content

Commit

Permalink
t7405: make hash size independent
Browse files Browse the repository at this point in the history
Use $ZERO_OID instead of hard-coding a fixed size all-zeros object ID.

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>
  • Loading branch information
bk2204 authored and gitster committed Jul 30, 2020
1 parent c0b65ea commit 2197f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t7405-submodule-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ test_expect_success 'git submodule status should display the merge conflict prop
url = $TRASH_DIRECTORY/sub
EOF
cat >expect <<EOF &&
U0000000000000000000000000000000000000000 sub
U$ZERO_OID sub
EOF
git submodule status > actual &&
test_cmp expect actual &&
Expand All @@ -214,7 +214,7 @@ test_expect_success 'git submodule status should display the merge conflict prop
url = $TRASH_DIRECTORY/sub
EOF
cat >expect <<EOF &&
U0000000000000000000000000000000000000000 sub
U$ZERO_OID sub
EOF
git submodule status > actual &&
test_cmp expect actual &&
Expand Down

0 comments on commit 2197f87

Please sign in to comment.