diff options
author | Stefan Beller <sbeller@google.com> | 2016-04-28 13:02:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-29 10:07:13 -0700 |
commit | 08fdbdb153c138f0a2dc85949475fafb20853d96 (patch) | |
tree | f3d62ae553d8f4db4c025817eeca99df6886360c /fsck.h | |
parent | submodule init: fail gracefully with a missing .gitmodules file (diff) | |
download | tgif-08fdbdb153c138f0a2dc85949475fafb20853d96.tar.xz |
submodule--helper update-clone: abort gracefully on missing .gitmodules
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 `git submodule update` was implemented in shell, this error out
with the warning
Submodule path '%s' not initialized
Maybe you want to use 'update --init'?
Replicate that behavior for now instead of crashing.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.h')
0 files changed, 0 insertions, 0 deletions