Skip to content

Commit 0b2c4af

Browse files
bk2204gitster
authored andcommitted
t4208: abstract away SHA-1-specific constants
Adjust the test so that it computes variables for object IDs instead of using hard-coded hashes. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5c02428 commit 0b2c4af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t4208-log-magic-pathspec.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ test_expect_success 'git log -- :' '
4545
'
4646

4747
test_expect_success 'git log HEAD -- :/' '
48+
initial=$(git rev-parse --short HEAD^) &&
4849
cat >expected <<-EOF &&
49-
24b24cf initial
50+
$initial initial
5051
EOF
5152
(cd sub && git log --oneline HEAD -- :/ >../actual) &&
5253
test_cmp expected actual

0 commit comments

Comments
 (0)