Code

Use test_set_editor in t9001-send-email.sh
authorBryan Donlan <bdonlan@fushizen.net>
Sun, 4 May 2008 05:37:55 +0000 (01:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 May 2008 21:17:01 +0000 (14:17 -0700)
Signed-off-by: Bryan Donlan <bdonlan@fushizen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9001-send-email.sh

index 030f66cb7c35a3d7808a998512603726937acd19..0a65785573495af32e0b42265d33b41e83d629c3 100755 (executable)
@@ -144,10 +144,7 @@ test_expect_success 'setup fake editor' '
        chmod +x fake-editor
 '
 
-FAKE_EDITOR="$(pwd)/fake-editor"
-export FAKE_EDITOR
-GIT_EDITOR='"$FAKE_EDITOR"'
-export GIT_EDITOR
+test_set_editor "$(pwd)/fake-editor"
 
 test_expect_success '--compose works' '
        clean_fake_sendmail &&