Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2007-10-26 08:13:50 +0400
committerJunio C Hamano <gitster@pobox.com>2007-10-27 10:17:19 +0400
commit15387e32ff5116b82d3fe53df55b8c87eec83e01 (patch)
tree91bfdf5278acdc3cded2ee703c758614a32f678d /t/t7005-editor.sh
parentdc2715554eae139ac6babbce1f973f83a7a4fedc (diff)
Test suite: reset TERM to its previous value after testing.
Using konsole, I get no colored output at the end of "t7005-editor.sh" without this patch. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7005-editor.sh')
-rwxr-xr-xt/t7005-editor.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 28643b0da4..01cc0c02b1 100755
--- a/t/t7005-editor.sh
+++ b/t/t7005-editor.sh
@@ -4,6 +4,8 @@ test_description='GIT_EDITOR, core.editor, and stuff'
. ./test-lib.sh
+OLD_TERM="$TERM"
+
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
do
cat >e-$i.sh <<-EOF
@@ -88,4 +90,6 @@ do
'
done
+TERM="$OLD_TERM"
+
test_done