From: brian m. carlson Date: Mon, 21 May 2018 02:01:42 +0000 (+0000) Subject: t/lib-diff-alternative: abstract away SHA-1-specific constants X-Git-Tag: v2.18.0-rc0~3^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d29d5001e9614871e05410362b20e1f0a76157a6?hp=--cc t/lib-diff-alternative: abstract away SHA-1-specific constants Adjust the test code so that it computes variables for blobs instead of using hard-coded hashes. This makes t4033 and t4050 (the patience and histogram tests) pass. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- d29d5001e9614871e05410362b20e1f0a76157a6 diff --git a/t/lib-diff-alternative.sh b/t/lib-diff-alternative.sh index 8b4dbf22d2..8d1e408bb5 100644 --- a/t/lib-diff-alternative.sh +++ b/t/lib-diff-alternative.sh @@ -59,9 +59,11 @@ int main(int argc, char **argv) } EOF - cat >expect <<\EOF + file1=$(git rev-parse --short $(git hash-object file1)) + file2=$(git rev-parse --short $(git hash-object file2)) + cat >expect <expect <<\EOF + uniq1=$(git rev-parse --short $(git hash-object uniq1)) + uniq2=$(git rev-parse --short $(git hash-object uniq2)) + cat >expect <