summaryrefslogtreecommitdiff
path: root/git-clean.sh
diff options
context:
space:
mode:
authorDennis Stosberg <dennis@stosberg.net>2006-05-29 17:06:32 +0200
committerJunio C Hamano <junkio@cox.net>2006-05-29 23:14:51 -0700
commit7484529d7f17d5bff1faefb007d604aba12a0e1b (patch)
tree4625f2fb4c5cc1b76a1668ddee55963aa738b350 /git-clean.sh
parent037b048eceafa129903d6327d3565c543f5895bb (diff)
downloadgit-7484529d7f17d5bff1faefb007d604aba12a0e1b.tar.gz
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>
Diffstat (limited to 'git-clean.sh')
-rwxr-xr-xgit-clean.sh4
1 files changed, 2 insertions, 2 deletions
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"