Skip to content

Commit 84d6940

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 02567e8 commit 84d6940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7300-clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ test_expect_success 'git clean -e' '
443443
(
444444
cd repo &&
445445
git init &&
446-
touch 1 2 3 known &&
446+
touch known 1 2 3 &&
447447
git add known &&
448448
git clean -f -e 1 -e 2 &&
449449
test -e 1 &&

0 commit comments

Comments
 (0)