From: brian m. carlson Date: Sun, 06 May 2018 23:17:38 GMT Subject: [PATCH 14/28] t3905: abstract away SHA-1-specific constants Message-ID: <20180506231752.975110-15-sandals@crustytoothpaste.net> In-Reply-To: <20180506231752.975110-1-sandals@crustytoothpaste.net> Adjust the test so that it computes variables for blobs instead of using hard-coded hashes. Signed-off-by: brian m. carlson --- t/t3905-stash-include-untracked.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/t/t3905-stash-include-untracked.sh b/t/t3905-stash-include-untracked.sh index 3ea5b9bb3f..c073514385 100755 --- a/t/t3905-stash-include-untracked.sh +++ b/t/t3905-stash-include-untracked.sh @@ -34,25 +34,26 @@ test_expect_success 'stash save --include-untracked cleaned the untracked files' git status --porcelain >actual && 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 <