Re: Possible bug: Git submodules can get into broken state

2013-04-04 Thread Chris Wilson
On Thu, 4 Apr 2013, Junio C Hamano wrote: I do not want to write an awk/sed script to remove all the submodules from .git/config ... Don't do it then ;-) I think "git config" was added exactly because people wanted to customize their configuration from their scripts. OK, I didn't know about

Re: Possible bug: Git submodules can get into broken state

2013-04-04 Thread Chris Wilson
Hi Junio, On Thu, 4 Apr 2013, Junio C Hamano wrote: This state is broken (wrong URLs in .git/config), and AFAIK there's nothing you can do to check out these submodules without either: (a) manually hacking them out of .git/config, or I do not think updating the config is "hacking", but is a

Possible bug: Git submodules can get into broken state

2013-04-04 Thread Chris Wilson
Hi all, If your git repo's .gitmodules contains a URL that you don't have access to (for example you download someone else's code and it references a submodule using their writable g...@github.com URL) then: * git submodule init will add them to .git/config, with the wrong URLs. * git submod