Skip to content

Commit

Permalink
t/t7300: workaround ancient touch by rearranging arguments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brandon Casey authored and Junio C Hamano committed Sep 17, 2010
1 parent 02567e8 commit 84d6940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t7300-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 84d6940

Please sign in to comment.