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
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-08 02:35:46 +0300
committerJunio C Hamano <junkio@cox.net>2006-02-09 08:55:34 +0300
commit47e013f9207a235a87390ee8ad03c8a7406f4147 (patch)
treee0e658624f2cfb7ea86222b9da34652edf0f54c4 /t
parentdfdd309e574df2da93f48d9cf4e83d53233dbe14 (diff)
t6000: fix a careless test library add-on.
It tried to "restore" GIT_AUTHOR_EMAIL environment variable but the variable started out as unset, so ended up setting it to an empty string. This is now caught as an error. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t6000lib.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t6000lib.sh b/t/t6000lib.sh
index 01f796e9c8..c6752af48e 100755
--- a/t/t6000lib.sh
+++ b/t/t6000lib.sh
@@ -51,7 +51,12 @@ as_author()
export GIT_AUTHOR_EMAIL="$_author"
"$@"
- export GIT_AUTHOR_EMAIL="$_save"
+ if test -z "$_save"
+ then
+ unset GIT_AUTHOR_EMAIL
+ else
+ export GIT_AUTHOR_EMAIL="$_save"
+ fi
}
commit_date()