Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t2107: abstract away SHA-1-specific constants
author
brian m. carlson
<sandals@crustytoothpaste.net>
Sun, 25 Mar 2018 19:20:55 +0000
(19:20 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 26 Mar 2018 22:10:48 +0000
(15:10 -0700)
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>
t/t2107-update-index-basic.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
736f2ef
)
diff --git
a/t/t2107-update-index-basic.sh
b/t/t2107-update-index-basic.sh
index 32ac6e09bdc81acfb8de5cf887302794d20c8ece..1db7e6a1abbebb63f811fa6ecbcd1db67607298e 100755
(executable)
--- a/
t/t2107-update-index-basic.sh
+++ b/
t/t2107-update-index-basic.sh
@@
-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