summaryrefslogtreecommitdiff
path: root/t/t0061-run-command.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-07-25 13:59:23 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-07-25 13:59:23 -0700
commita5194d806c46a71d523054db28f0b22e23284a3c (patch)
tree755a2cc2943bd67003fd3c932d9026e880d9bc62 /t/t0061-run-command.sh
parentMerge branch 'jc/post-c89-rules-doc' (diff)
parentmingw: support spawning programs containing spaces in their names (diff)
downloadtgif-a5194d806c46a71d523054db28f0b22e23284a3c.tar.xz
Merge branch 'js/mingw-spawn-with-spaces-in-path'
Window 7 update ;-) * js/mingw-spawn-with-spaces-in-path: mingw: support spawning programs containing spaces in their names
Diffstat (limited to 't/t0061-run-command.sh')
-rwxr-xr-xt/t0061-run-command.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t0061-run-command.sh b/t/t0061-run-command.sh
index ebc49561ac..015fac8b5d 100755
--- a/t/t0061-run-command.sh
+++ b/t/t0061-run-command.sh
@@ -210,4 +210,10 @@ test_expect_success MINGW 'verify curlies are quoted properly' '
test_cmp expect actual
'
+test_expect_success MINGW 'can spawn with argv[0] containing spaces' '
+ cp "$GIT_BUILD_DIR/t/helper/test-fake-ssh$X" ./ &&
+ test_must_fail "$PWD/test-fake-ssh$X" 2>err &&
+ grep TRASH_DIRECTORY err
+'
+
test_done