@matheusbsbs / matheus-bagliano / commits / a697ec69cb
Fork 0

Fix bogus use of printf in t3700 test

The hashed contents did not matter in the end result, but it passed an uninitialized variable to printf, which caused it to emit empty while giving an error/usage message. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Aug 3, 2007 at 14:31 UTC a697ec69cbd3eb1a8fb70e4e0587e5049cd1ad83
1 file changed +2 -2
t/t3700-add.sh
+2 -2
@@ -131,8 +131,8 @@ test_expect_success 'git add with filemode=0, symlinks=0 prefers stage 2 over st
131 (
132 echo "100644 $(git hash-object -w stage1) 1 file"
133 echo "100755 $(git hash-object -w stage2) 2 file"
134 - echo "100644 $(printf $s | git hash-object -w -t blob --stdin) 1 symlink"
135 - echo "120000 $(printf $s | git hash-object -w -t blob --stdin) 2 symlink"
134 + echo "100644 $(printf 1 | git hash-object -w -t blob --stdin) 1 symlink"
135 + echo "120000 $(printf 2 | git hash-object -w -t blob --stdin) 2 symlink"
136 ) | git update-index --index-info &&
137 git config core.filemode 0 &&
138 git config core.symlinks 0 &&