summaryrefslogtreecommitdiff
path: root/builtin/rerere.c
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2016-04-28 13:02:46 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-29 10:07:13 -0700
commit08fdbdb153c138f0a2dc85949475fafb20853d96 (patch)
treef3d62ae553d8f4db4c025817eeca99df6886360c /builtin/rerere.c
parentsubmodule init: fail gracefully with a missing .gitmodules file (diff)
downloadtgif-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 'builtin/rerere.c')
0 files changed, 0 insertions, 0 deletions