Re: [bug] Git submodule command interprets switch as argument and switch

2017-08-18 Thread R0b0t1
On Fri, Aug 18, 2017 at 3:38 PM, Jonathan Nieder wrote: > Hi, > > R0b0t1 wrote: > >> 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'... > > Thanks for reporting. Confusingly, I thin

Re: [bug] Git submodule command interprets switch as argument and switch

2017-08-18 Thread Jonathan Nieder
Hi, R0b0t1 wrote: > 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'... Thanks for reporting. Confusingly, I think this is intended behavior. "git help submodule" explains: ad

Re: [bug] Git submodule command interprets switch as argument and switch

2017-08-18 Thread Stefan Beller
On Thu, Aug 17, 2017 at 10:16 PM, R0b0t1 wrote: > 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 th

[bug] Git submodule command interprets switch as argument and switch

2017-08-17 Thread R0b0t1
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 comman