summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-07 23:35:46 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-09 05:55:34 (GMT)
commit47e013f9207a235a87390ee8ad03c8a7406f4147 (patch)
treee0e658624f2cfb7ea86222b9da34652edf0f54c4
parentdfdd309e574df2da93f48d9cf4e83d53233dbe14 (diff)
downloadgit-47e013f9207a235a87390ee8ad03c8a7406f4147.zip
git-47e013f9207a235a87390ee8ad03c8a7406f4147.tar.gz
git-47e013f9207a235a87390ee8ad03c8a7406f4147.tar.bz2
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>
-rwxr-xr-xt/t6000lib.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t6000lib.sh b/t/t6000lib.sh
index 01f796e..c6752af 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()