summaryrefslogtreecommitdiff
path: root/t/t7800-difftool.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-10-30 09:22:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-31 02:43:12 (GMT)
commit665177ebf2e948504dcb255d2f58817224a8935a (patch)
tree92ebc8b010ae0450be30f5e00f3286a52ce997c9 /t/t7800-difftool.sh
parentcae598d9980661a978e2df4fb338518f7bf09572 (diff)
downloadgit-665177ebf2e948504dcb255d2f58817224a8935a.zip
git-665177ebf2e948504dcb255d2f58817224a8935a.tar.gz
git-665177ebf2e948504dcb255d2f58817224a8935a.tar.bz2
t7800: fix quoting
When passing a command-line to call an external diff command to the difftool, we must be prepared for paths containing special characters, e.g. backslashes in the temporary directory's path on Windows. This patch is needed in preparation for the next commit, which will make the MinGW version of Git *not* rewrite TMP to use forward slashes instead of backslashes. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7800-difftool.sh')
-rwxr-xr-xt/t7800-difftool.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh
index 668bbee..f29aa8f 100755
--- a/t/t7800-difftool.sh
+++ b/t/t7800-difftool.sh
@@ -332,7 +332,7 @@ test_expect_success 'difftool --extcmd cat arg1' '
test_expect_success 'difftool --extcmd cat arg2' '
echo branch >expect &&
git difftool --no-prompt \
- --extcmd sh\ -c\ \"cat\ \$2\" branch >actual &&
+ --extcmd sh\ -c\ \"cat\ \\\"\$2\\\"\" branch >actual &&
test_cmp expect actual
'