From: Brandon Casey Date: Wed, 15 Sep 2010 20:58:22 +0000 (-0500) Subject: t/t7300: workaround ancient touch by rearranging arguments X-Git-Tag: v1.7.3~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=84d694027fbecfc61683aa584725491bf614b5e1;p=git.git t/t7300: workaround ancient touch by rearranging arguments The ancient touch on Solaris 7 thinks that a decimal number supplied as the first argument specifies a date_time to give to the files specified by the remaining arguments. In this case, it fails to parse '1' as a proper date_time and exits with a failure status. Workaround this flaw by rearranging the arguments supplied to touch so that a non-digit appears first and touch will not be confused. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano --- diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 7dbbea13a..6c776e9be 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -443,7 +443,7 @@ test_expect_success 'git clean -e' ' ( cd repo && git init && - touch 1 2 3 known && + touch known 1 2 3 && git add known && git clean -f -e 1 -e 2 && test -e 1 &&