X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2Ft6000lib.sh;h=d40262159bce36e78dd56d931eaf1d007ef77da8;hb=31262627109476c529418132e0820687003fb1fe;hp=01f796e9c827aff02c3161ac940626dd4d8edb9b;hpb=98e031f0bb6e857c684e6db24d03d22cfc1a532a;p=git.git diff --git a/t/t6000lib.sh b/t/t6000lib.sh old mode 100644 new mode 100755 index 01f796e9..d4026215 --- 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() @@ -64,7 +69,9 @@ on_committer_date() { _date=$1 shift 1 - GIT_COMMITTER_DATE=$_date "$@" + export GIT_COMMITTER_DATE="$_date" + "$@" + unset GIT_COMMITTER_DATE } # Execute a command and suppress any error output.