@matheusbsbs / matheus-bagliano / commits / 933e4f090d
Fork 0

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>

Eric Wong committed May 25, 2006 at 19:06 UTC 933e4f090dd39d44279f155f7a7347ff34964d2d
1 file changed +3 -1
t/t6000lib.sh
+3 -1
@@ -69,7 +69,9 @@ on_committer_date()
69 {
70 _date=$1
71 shift 1
72 - GIT_COMMITTER_DATE=$_date "$@"
72 + export GIT_COMMITTER_DATE="$_date"
73 + "$@"
74 + unset GIT_COMMITTER_DATE
75 }
76
77 # Execute a command and suppress any error output.