summaryrefslogtreecommitdiff
path: root/t/t3900-i18n-commit.sh
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2011-08-11 07:05:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-11 18:11:14 (GMT)
commit23ce5c39dc7b530a71d26598af7d93b01d182534 (patch)
treead2f7a9af5b340772d7ffc16c694616725d3fc95 /t/t3900-i18n-commit.sh
parenta7c58f280a57ce64e058111b0adbcd6ea846cbdc (diff)
downloadgit-23ce5c39dc7b530a71d26598af7d93b01d182534.zip
git-23ce5c39dc7b530a71d26598af7d93b01d182534.tar.gz
git-23ce5c39dc7b530a71d26598af7d93b01d182534.tar.bz2
t3900: do not reference numbered arguments from the test script
The call to test_expect_success is nested inside a function, whose arguments the test code wants to access. But it is not specified that any unexpanded $1, $2, $3, etc in the test code will access the surrounding function's arguments. Rather, they will access the arguments of the function that happens to eval the test code. In this case, the reference is intended to supply '-m message' to a call of 'git commit --squash'. Remove it because -m is optional and the test case does not check for it. There are tests in t7500 that check combinations of --squash and -m. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3900-i18n-commit.sh')
-rwxr-xr-xt/t3900-i18n-commit.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3900-i18n-commit.sh b/t/t3900-i18n-commit.sh
index c06a5ee..1f62c15 100755
--- a/t/t3900-i18n-commit.sh
+++ b/t/t3900-i18n-commit.sh
@@ -147,7 +147,7 @@ test_commit_autosquash_flags () {
git commit -a -m "intermediate commit" &&
test_tick &&
echo $H $flag >>F &&
- git commit -a --$flag HEAD~1 $3 &&
+ git commit -a --$flag HEAD~1 &&
E=$(git cat-file commit '$H-$flag' |
sed -ne "s/^encoding //p") &&
test "z$E" = "z$H" &&
@@ -160,6 +160,6 @@ test_commit_autosquash_flags () {
test_commit_autosquash_flags eucJP fixup
-test_commit_autosquash_flags ISO-2022-JP squash '-m "squash message"'
+test_commit_autosquash_flags ISO-2022-JP squash
test_done