diff options
author | René Scharfe <l.s.r@web.de> | 2018-03-28 23:14:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-28 15:27:02 -0700 |
commit | 74b6bda32f8350b2dc32f8d66f4046272168184e (patch) | |
tree | d28392eae5310dd3009e5806ac78b891c49bf485 /builtin/grep.c | |
parent | Git 2.16.3 (diff) | |
download | tgif-74b6bda32f8350b2dc32f8d66f4046272168184e.tar.xz |
submodule: check for NULL return of get_submodule_ref_store()
If we can't find a ref store for a submodule then assume the latter
is not initialized (or was removed). Print a status line accordingly
instead of causing a segmentation fault by passing NULL as the first
parameter of refs_head_ref().
Reported-by: Jeremy Feusi <jeremy@feusi.co>
Reviewed-by: Stefan Beller <sbeller@google.com>
Initial-Test-By: Stefan Beller <sbeller@google.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/grep.c')
0 files changed, 0 insertions, 0 deletions