@matheusbsbs / matheus-bagliano / commits / 37ab8ebef1
Fork 0

t4039: 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>

brian m. carlson committed Oct 28, 2019 at 00:59 UTC 37ab8ebef164cc2813658c824561a09dc7cde22f
1 file changed +2 -1
t/t4039-diff-assume-unchanged.sh
+2 -1
@@ -12,6 +12,7 @@ test_expect_success 'setup' '
12 git commit -m zero &&
13 echo one > one &&
14 echo two > two &&
15 + blob=$(git hash-object one) &&
16 git add one two &&
17 git commit -m onetwo &&
18 git update-index --assume-unchanged one &&
@@ -20,7 +21,7 @@ test_expect_success 'setup' '
21 '
22
23 test_expect_success 'diff-index does not examine assume-unchanged entries' '
23 - git diff-index HEAD^ -- one | grep -q 5626abf0f72e58d7a153368ba57db4c673c0e171
24 + git diff-index HEAD^ -- one | grep -q $blob
25 '
26
27 test_expect_success 'diff-files does not examine assume-unchanged entries' '