From: Eric Wong Date: Fri, 26 May 2006 02:06:18 +0000 (-0700) Subject: t6000lib: workaround a possible dash bug X-Git-Tag: v1.4.0-rc1~28^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=933e4f090dd39d44279f155f7a7347ff34964d2d;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t6000lib.sh b/t/t6000lib.sh index c6752af48..d40262159 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.