git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [bug] Git submodule command interprets switch as argument and switch
@ 2017-08-18  5:16 R0b0t1
  2017-08-18 19:33 ` Stefan Beller
  2017-08-18 20:38 ` Jonathan Nieder
  0 siblings, 2 replies; 4+ messages in thread
From: R0b0t1 @ 2017-08-18  5:16 UTC (permalink / raw)
  To: git

The issue is as follows:

R0b0t1@host:~/devel/project$ git submodule add
https://github.com/user/project -f
Cloning into '/home/R0b0t1/devel/project/-f'...

My .gitignore's first line is *, and then I explicitly allow things.
Despite the presence of "project/" in the .gitignore the submodule
command says it is ignored. The "force" flag is interpreted as a flag
and also as the destination directory.

It is possible the argument parsing code for other commands exhibits this error.

R0b0t1.

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

end of thread, other threads:[~2017-08-18 21:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-18  5:16 [bug] Git submodule command interprets switch as argument and switch R0b0t1
2017-08-18 19:33 ` Stefan Beller
2017-08-18 20:38 ` Jonathan Nieder
2017-08-18 21:35   ` R0b0t1

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).