Re: [PATCH] submodule init: fail gracefully with a missing .gitmodules file

2016-04-28 Thread Stefan Beller
On Thu, Apr 28, 2016 at 11:28 AM, Stefan Beller wrote: > When there is no .gitmodules file availabe to initialize a submodule > from, `submodule_from_path` just returns NULL. We need to check for > that and abort gracefully. When `submodule init` was implemented in shell, > a missing .gitmodules f

[PATCH] submodule init: fail gracefully with a missing .gitmodules file

2016-04-28 Thread Stefan Beller
When there is no .gitmodules file availabe to initialize a submodule from, `submodule_from_path` just returns NULL. We need to check for that and abort gracefully. When `submodule init` was implemented in shell, a missing .gitmodules file would result in an error message No url found for submo