t2107: abstract away SHA-1-specific constants
Use the $EMPTY_BLOB variable instead of hard-coding a hash. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
736f2efcfb
commit
31bdb1f28e
@ -85,9 +85,9 @@ test_expect_success '--chmod=+x and chmod=-x in the same argument list' '
|
||||
>B &&
|
||||
git add A B &&
|
||||
git update-index --chmod=+x A --chmod=-x B &&
|
||||
cat >expect <<-\EOF &&
|
||||
100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 A
|
||||
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 B
|
||||
cat >expect <<-EOF &&
|
||||
100755 $EMPTY_BLOB 0 A
|
||||
100644 $EMPTY_BLOB 0 B
|
||||
EOF
|
||||
git ls-files --stage A B >actual &&
|
||||
test_cmp expect actual
|
||||
|
Loading…
Reference in New Issue
Block a user