Skip to content

Commit 31bdb1f

Browse files
bk2204gitster
authored andcommitted
t2107: abstract away SHA-1-specific constants
Use the $EMPTY_BLOB variable instead of hard-coding a hash. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 736f2ef commit 31bdb1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t2107-update-index-basic.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ test_expect_success '--chmod=+x and chmod=-x in the same argument list' '
8585
>B &&
8686
git add A B &&
8787
git update-index --chmod=+x A --chmod=-x B &&
88-
cat >expect <<-\EOF &&
89-
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 A
90-
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 B
88+
cat >expect <<-EOF &&
89+
100755 $EMPTY_BLOB 0 A
90+
100644 $EMPTY_BLOB 0 B
9191
EOF
9292
git ls-files --stage A B >actual &&
9393
test_cmp expect actual

0 commit comments

Comments
 (0)