git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5c02428
)
t4208: abstract away SHA-1-specific constants
author
brian m. carlson
<redacted>
Mon, 21 May 2018 02:01:46 +0000
(
02:01
+0000)
committer
Junio C Hamano
<redacted>
Mon, 21 May 2018 04:55:48 +0000
(13:55 +0900)
Adjust the test so that it computes variables for object IDs instead of
using hard-coded hashes.
Signed-off-by: brian m. carlson <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t4208-log-magic-pathspec.sh
patch
|
blob
|
history
diff --git
a/t/t4208-log-magic-pathspec.sh
b/t/t4208-log-magic-pathspec.sh
index a1705f70cffe2332fc65f670797539986f330f70..62f335b2d9fe7268f8f6cd878067de8528b5cb75 100755
(executable)
--- a/
t/t4208-log-magic-pathspec.sh
+++ b/
t/t4208-log-magic-pathspec.sh
@@
-45,8
+45,9
@@
test_expect_success 'git log -- :' '
'
test_expect_success 'git log HEAD -- :/' '
+ initial=$(git rev-parse --short HEAD^) &&
cat >expected <<-EOF &&
-
24b24cf
initial
+
$initial
initial
EOF
(cd sub && git log --oneline HEAD -- :/ >../actual) &&
test_cmp expected actual
git clone https://git.99rst.org/PROJECT