git log: don't do merge diffs by default
[gitweb.git] / t / t6000lib.sh
old mode 100644 (file)
new mode 100755 (executable)
index 01f796e..c6752af
@@ -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()