diff options
author | Junio C Hamano <junkio@cox.net> | 2006-02-08 02:35:46 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-09 08:55:34 +0300 |
commit | 47e013f9207a235a87390ee8ad03c8a7406f4147 (patch) | |
tree | e0e658624f2cfb7ea86222b9da34652edf0f54c4 /t/t6000lib.sh | |
parent | dfdd309e574df2da93f48d9cf4e83d53233dbe14 (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/t6000lib.sh')
-rwxr-xr-x | t/t6000lib.sh | 7 |
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() |