Skip to content

Commit

Permalink
Fix bogus use of printf in t3700 test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Aug 3, 2007
1 parent d20602e commit a697ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t3700-add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ test_expect_success 'git add with filemode=0, symlinks=0 prefers stage 2 over st
(
echo "100644 $(git hash-object -w stage1) 1 file"
echo "100755 $(git hash-object -w stage2) 2 file"
echo "100644 $(printf $s | git hash-object -w -t blob --stdin) 1 symlink"
echo "120000 $(printf $s | git hash-object -w -t blob --stdin) 2 symlink"
echo "100644 $(printf 1 | git hash-object -w -t blob --stdin) 1 symlink"
echo "120000 $(printf 2 | git hash-object -w -t blob --stdin) 2 symlink"
) | git update-index --index-info &&
git config core.filemode 0 &&
git config core.symlinks 0 &&
Expand Down

0 comments on commit a697ec6

Please sign in to comment.