aboutsummaryrefslogtreecommitdiff
path: root/t/t6000lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t6000lib.sh')
-rwxr-xr-xt/t6000lib.sh7
1 files changed, 6 insertions, 1 deletions
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()