Re: [PATCHv2 1/2] submodule init: fail gracefully with a missing .gitmodules file

2016-04-29 Thread Junio C Hamano
Stefan Beller writes: > 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 mes

[PATCHv2 1/2] 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