git-clean fails on files beginning with a dash

Reproducible with:

$ git init-db
$ echo "some text" >-file
$ git clean
Removing -file
rm: invalid option -- l
Try `rm --help' for more information.

Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Dennis Stosberg 2006-05-29 17:06:32 +02:00 committed by Junio C Hamano
parent 037b048ece
commit 7484529d7f

View File

@ -19,8 +19,8 @@ ignored=
ignoredonly=
cleandir=
quiet=
rmf="rm -f"
rmrf="rm -rf"
rmf="rm -f --"
rmrf="rm -rf --"
rm_refuse="echo Not removing"
echo1="echo"