diff options
author | Dennis Stosberg <dennis@stosberg.net> | 2006-05-29 17:06:32 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-29 23:14:51 -0700 |
commit | 7484529d7f17d5bff1faefb007d604aba12a0e1b (patch) | |
tree | 4625f2fb4c5cc1b76a1668ddee55963aa738b350 | |
parent | 037b048eceafa129903d6327d3565c543f5895bb (diff) | |
download | git-7484529d7f17d5bff1faefb007d604aba12a0e1b.tar.gz git-7484529d7f17d5bff1faefb007d604aba12a0e1b.tar.xz |
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>
-rwxr-xr-x | git-clean.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-clean.sh b/git-clean.sh index bb56264e0..3834323bc 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" |