git submodule add spits unrelated to actual problem error msg about .gitignore

2016-09-14 Thread Yaroslav Halchenko
I have spent some time chasing the wild goose (well - the .gitignore file) after getting: $> git-submodule add --name fcx-1 ./fcx-1/ ./fcx-1/ The following path is ignored by one of your .gitignore files: fcx-1 Use -f if you really want to add it. long story short -- the culprit i

Re: git submodule add spits unrelated to actual problem error msg about .gitignore

2016-09-14 Thread Stefan Beller
On Wed, Sep 14, 2016 at 7:03 AM, Yaroslav Halchenko wrote: > I have spent some time chasing the wild goose (well - the .gitignore > file) after getting: > > $> git-submodule add --name fcx-1 ./fcx-1/ ./fcx-1/ > The following path is ignored by one of your .gitignore files: > fcx-1 >

Re: git submodule add spits unrelated to actual problem error msg about .gitignore

2016-09-14 Thread Yaroslav Halchenko
On September 14, 2016 3:32:11 PM EDT, Stefan Beller wrote: ! >I think we could chop off "2>&1" as that would have exposed the >underlying error. > >Another way to go would be to use verbose git-add and grep for >the string "add '$sm_path'". > > if test -z "$force" && ! git add --verbose --dry-