t4030: 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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed May 21, 2018 at 02:01 UTC a6c5799052cb803d189b0f37c9be83ba6a3202ab
1 file changed +3 -2
t/t4030-diff-textconv.sh
+3 -2
@@ -148,7 +148,8 @@ test_expect_success 'diffstat does not run textconv' '
148 # restore working setup
149 echo file diff=foo >.gitattributes
150
151 -cat >expect.typechange <<'EOF'
151 +symlink=$(git rev-parse --short $(printf frotz | git hash-object --stdin))
152 +cat >expect.typechange <<EOF
153 --- a/file
154 +++ /dev/null
155 @@ -1,2 +0,0 @@
@@ -156,7 +157,7 @@ cat >expect.typechange <<'EOF'
157 -1
158 diff --git a/file b/file
159 new file mode 120000
159 -index 0000000..67be421
160 +index 0000000..$symlink
161 --- /dev/null
162 +++ b/file
163 @@ -0,0 +1 @@