提交 7484529d 编写于 作者: D Dennis Stosberg 提交者: Junio C Hamano

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: NDennis Stosberg <dennis@stosberg.net>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 037b048e
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册