summaryrefslogtreecommitdiff
path: root/t/t7300-clean.sh
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2010-09-15 20:58:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-09-17 21:42:13 (GMT)
commit84d694027fbecfc61683aa584725491bf614b5e1 (patch)
tree87d106293cceb7f3bee359eabfde30890af4418b /t/t7300-clean.sh
parent02567e88ee8bdbf4d3852c2d6b9e5ce64a55a9e6 (diff)
downloadgit-84d694027fbecfc61683aa584725491bf614b5e1.zip
git-84d694027fbecfc61683aa584725491bf614b5e1.tar.gz
git-84d694027fbecfc61683aa584725491bf614b5e1.tar.bz2
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 <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7300-clean.sh')
-rwxr-xr-xt/t7300-clean.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 7dbbea1..6c776e9 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 &&