From: Dennis Stosberg Date: Mon, 29 May 2006 15:06:32 +0000 (+0200) Subject: git-clean fails on files beginning with a dash X-Git-Tag: v1.4.0-rc1~34 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7484529d7f17d5bff1faefb007d604aba12a0e1b?hp=--cc 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 Signed-off-by: Junio C Hamano --- 7484529d7f17d5bff1faefb007d604aba12a0e1b diff --git a/git-clean.sh b/git-clean.sh index bb56264e04..3834323bcf 100755 --- a/git-clean.sh +++ b/git-clean.sh @@ -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"