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>
Junio C Hamano committed
Feb 7, 2006 at 15:35 UTC
47e013f9207a235a87390ee8ad03c8a7406f4147
1 file changed
+6
-1
t/t6000lib.sh
+6
-1
@@ -51,7 +51,12 @@ as_author()
51
52
export GIT_AUTHOR_EMAIL="$_author"
53
"$@"
54
- export GIT_AUTHOR_EMAIL="$_save"
54
+ if test -z "$_save"
55
+ then
56
+ unset GIT_AUTHOR_EMAIL
57
+ else
58
+ export GIT_AUTHOR_EMAIL="$_save"
59
+ fi
60
}
61
62
commit_date()