@matheusbsbs / matheus-bagliano / commits / 3e04b6e1b6
Fork 0

t9101: make hash independent

Instead of hard-coding the object ID for our test .gitignore file, let's compute it. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Acked-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Jun 19, 2020 at 22:39 UTC 3e04b6e1b672a2b38b1e2a7094bcc600e76959b1
1 file changed +7 -5
t/t9101-git-svn-props.sh
+7 -5
@@ -160,11 +160,13 @@ cat >create-ignore.expect <<\EOF
160 /no-such-file*
161 EOF
162
163 -cat >create-ignore-index.expect <<\EOF
164 -100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0 .gitignore
165 -100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0 deeply/.gitignore
166 -100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0 deeply/nested/.gitignore
167 -100644 8c52e5dfcd0a8b6b6bcfe6b41b89bcbf493718a5 0 deeply/nested/directory/.gitignore
163 +expectoid=$(git hash-object create-ignore.expect)
164 +
165 +cat >create-ignore-index.expect <<EOF
166 +100644 $expectoid 0 .gitignore
167 +100644 $expectoid 0 deeply/.gitignore
168 +100644 $expectoid 0 deeply/nested/.gitignore
169 +100644 $expectoid 0 deeply/nested/directory/.gitignore
170 EOF
171
172 test_expect_success 'test create-ignore' "