git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-clean fails on files beginning with a dash
@ 2006-05-29 15:06 Dennis Stosberg
  2006-05-30  8:49 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Dennis Stosberg @ 2006-05-29 15:06 UTC (permalink / raw)
  To: git

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>
---
 git-clean.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-clean.sh b/git-clean.sh
index bb56264..3834323 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"
 
-- 
1.3.3+git20060528-dest1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] git-clean fails on files beginning with a dash
  2006-05-29 15:06 [PATCH] git-clean fails on files beginning with a dash Dennis Stosberg
@ 2006-05-30  8:49 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-05-30  8:49 UTC (permalink / raw)
  To: Dennis Stosberg; +Cc: git

Dennis Stosberg <dennis@stosberg.net> writes:

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

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-30  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-29 15:06 [PATCH] git-clean fails on files beginning with a dash Dennis Stosberg
2006-05-30  8:49 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).