Skip to content

Commit

Permalink
t6000: fix a careless test library add-on.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Feb 9, 2006
1 parent dfdd309 commit 47e013f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/t6000lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 47e013f

Please sign in to comment.