Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-08-04 01:31:47 +0400
committerJunio C Hamano <gitster@pobox.com>2007-08-04 01:31:47 +0400
commita697ec69cbd3eb1a8fb70e4e0587e5049cd1ad83 (patch)
tree1ce21f2714c9a705ce8d2985574d230c9b746364 /t/t3700-add.sh
parentd20602eec97caa8766820150eff2a07e205c44e1 (diff)
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>
Diffstat (limited to 't/t3700-add.sh')
-rwxr-xr-xt/t3700-add.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index b52fde8577..213e9249da 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -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 &&