From: brian m. carlson Date: Mon, 21 May 2018 02:01:33 +0000 (+0000) Subject: t3905: abstract away SHA-1-specific constants X-Git-Tag: v2.18.0-rc0~3^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f1aae0346a3b9b0ba82a3054d776486823296237?hp=--cc t3905: abstract away SHA-1-specific constants Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- f1aae0346a3b9b0ba82a3054d776486823296237 diff --git a/t/t3905-stash-include-untracked.sh b/t/t3905-stash-include-untracked.sh index 3ea5b9bb3f..597b0637d1 100755 --- a/t/t3905-stash-include-untracked.sh +++ b/t/t3905-stash-include-untracked.sh @@ -35,24 +35,26 @@ test_expect_success 'stash save --include-untracked cleaned the untracked files' test_cmp expect actual ' +tracked=$(git rev-parse --short $(echo 1 | git hash-object --stdin)) +untracked=$(git rev-parse --short $(echo untracked | git hash-object --stdin)) cat > expect.diff < expect <