aboutsummaryrefslogtreecommitdiff
path: root/t/t6000lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-07 15:35:46 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-08 21:55:34 -0800
commit47e013f9207a235a87390ee8ad03c8a7406f4147 (patch)
treee0e658624f2cfb7ea86222b9da34652edf0f54c4 /t/t6000lib.sh
parentdfdd309e574df2da93f48d9cf4e83d53233dbe14 (diff)
downloadgit-47e013f9207a235a87390ee8ad03c8a7406f4147.tar.gz
git-47e013f9207a235a87390ee8ad03c8a7406f4147.tar.xz
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/t6000lib.sh')
-rwxr-xr-xt/t6000lib.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t6000lib.sh b/t/t6000lib.sh
index 01f796e9c..c6752af48 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()