Skip to content

Commit 3e04b6e

Browse files
bk2204gitster
authored andcommitted
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 <[email protected]> Acked-by: Eric Wong <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bbe0616 commit 3e04b6e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

t/t9101-git-svn-props.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,13 @@ cat >create-ignore.expect <<\EOF
160160
/no-such-file*
161161
EOF
162162

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
168170
EOF
169171

170172
test_expect_success 'test create-ignore' "

0 commit comments

Comments
 (0)