summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-05-26 02:06:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-26 06:53:31 (GMT)
commit933e4f090dd39d44279f155f7a7347ff34964d2d (patch)
treefc157d3f7317229c59a20daec6792d89752be12d /t
parent1010437d515a2740b7c0f3eeecf6af804062a9ff (diff)
downloadgit-933e4f090dd39d44279f155f7a7347ff34964d2d.zip
git-933e4f090dd39d44279f155f7a7347ff34964d2d.tar.gz
git-933e4f090dd39d44279f155f7a7347ff34964d2d.tar.bz2
t6000lib: workaround a possible dash bug
pdksh doesn't need this patch, of course bash works fine since that what most users use. Normally, 'var=val command' seems to work fine with dash, but perhaps there's something weird going on with "$@". dash is pretty widespread, so it'll be good to support this even though it does seem like a bug in dash. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t6000lib.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t6000lib.sh b/t/t6000lib.sh
index c6752af..d402621 100755
--- a/t/t6000lib.sh
+++ b/t/t6000lib.sh
@@ -69,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.