diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-05-21 02:01:46 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-21 13:55:48 +0900 |
commit | 0b2c4af4b667165cc23330db07693865b55eb927 (patch) | |
tree | ee94d0d4f964d59f98ffb9de79456475328c61c7 /t | |
parent | t4045: abstract away SHA-1-specific constants (diff) | |
download | tgif-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-x | t/t4208-log-magic-pathspec.sh | 3 |
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 |