Skip to content

Commit a6c5799

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b55ee57 commit a6c5799

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/t4030-diff-textconv.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,16 @@ test_expect_success 'diffstat does not run textconv' '
148148
# restore working setup
149149
echo file diff=foo >.gitattributes
150150

151-
cat >expect.typechange <<'EOF'
151+
symlink=$(git rev-parse --short $(printf frotz | git hash-object --stdin))
152+
cat >expect.typechange <<EOF
152153
--- a/file
153154
+++ /dev/null
154155
@@ -1,2 +0,0 @@
155156
-0
156157
-1
157158
diff --git a/file b/file
158159
new file mode 120000
159-
index 0000000..67be421
160+
index 0000000..$symlink
160161
--- /dev/null
161162
+++ b/file
162163
@@ -0,0 +1 @@

0 commit comments

Comments
 (0)