t7502: properly quote GIT_EDITOR

One of the tests tries to ensure that editor is not run due to an early failure. However, it needs to quote the pathname of the trash directory used in $GIT_EDITOR, since git will pass it along to the shell. In other words, the test would pass whether the code was correct or not, since the unquoted editor specification would never run. We never noticed the problem because the code is indeed correct, so git-commit never even tried to run the editor. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 26, 2012 at 16:28 UTC 34565f27fef10546a62c734c55c0d280aad63460
1 file changed +1 -1
t/t7502-commit.sh
+1 -1
@@ -290,7 +290,7 @@ test_expect_success 'do not fire editor in the presence of conflicts' '
290 test_must_fail git cherry-pick -n master &&
291 echo "editor not started" >.git/result &&
292 (
293 - GIT_EDITOR="$(pwd)/.git/FAKE_EDITOR" &&
293 + GIT_EDITOR="\"$(pwd)/.git/FAKE_EDITOR\"" &&
294 export GIT_EDITOR &&
295 test_must_fail git commit
296 ) &&