summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2018-05-21 02:01:46 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-21 13:55:48 +0900
commit0b2c4af4b667165cc23330db07693865b55eb927 (patch)
treeee94d0d4f964d59f98ffb9de79456475328c61c7 /t
parentt4045: abstract away SHA-1-specific constants (diff)
downloadtgif-0b2c4af4b667165cc23330db07693865b55eb927.tar.xz
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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t4208-log-magic-pathspec.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t4208-log-magic-pathspec.sh b/t/t4208-log-magic-pathspec.sh
index a1705f70cf..62f335b2d9 100755
--- 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