aboutsummaryrefslogtreecommitdiff
path: root/t/t6000lib.sh
diff options
context:
space:
mode:
authorBryan Donlan <bdonlan@fushizen.net>2008-05-04 01:37:58 -0400
committerJunio C Hamano <gitster@pobox.com>2008-05-05 14:17:01 -0700
commit0e46e704626af5189c9c9ff2c0f348d2205c10f3 (patch)
tree5c1ad84d9adf5016bd1b8324da1c148025cd74df /t/t6000lib.sh
parentcdf3ec01acb8785b8e61ce6e006c9c4c763de663 (diff)
downloadgit-0e46e704626af5189c9c9ff2c0f348d2205c10f3.tar.gz
git-0e46e704626af5189c9c9ff2c0f348d2205c10f3.tar.xz
Don't use the 'export NAME=value' in the test scripts.
This form is not portable across all shells, so replace instances of: export FOO=bar with: FOO=bar export FOO Signed-off-by: Bryan Donlan <bdonlan@fushizen.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6000lib.sh')
-rwxr-xr-xt/t6000lib.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/t/t6000lib.sh b/t/t6000lib.sh
index c0baaa536..f55627b64 100755
--- a/t/t6000lib.sh
+++ b/t/t6000lib.sh
@@ -49,13 +49,15 @@ as_author()
shift 1
_save=$GIT_AUTHOR_EMAIL
- export GIT_AUTHOR_EMAIL="$_author"
+ GIT_AUTHOR_EMAIL="$_author"
+ export GIT_AUTHOR_EMAIL
"$@"
if test -z "$_save"
then
unset GIT_AUTHOR_EMAIL
else
- export GIT_AUTHOR_EMAIL="$_save"
+ GIT_AUTHOR_EMAIL="$_save"
+ export GIT_AUTHOR_EMAIL
fi
}
@@ -69,7 +71,8 @@ on_committer_date()
{
_date=$1
shift 1
- export GIT_COMMITTER_DATE="$_date"
+ GIT_COMMITTER_DATE="$_date"
+ export GIT_COMMITTER_DATE
"$@"
unset GIT_COMMITTER_DATE
}