From: Junio C Hamano Date: Tue, 7 Feb 2006 23:35:46 +0000 (-0800) Subject: t6000: fix a careless test library add-on. X-Git-Tag: v1.2.0~26^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=47e013f9207a235a87390ee8ad03c8a7406f4147;p=git.git 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 --- 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()