Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'pc/submodule-helper'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 28 Mar 2018 18:04:25 +0000
(11:04 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 28 Mar 2018 18:04:25 +0000
(11:04 -0700)
Hotfix.
* pc/submodule-helper:
submodule deinit: handle non existing pathspecs gracefully
builtin/submodule--helper.c
patch
|
blob
|
history
raw
(from parent 1:
87cc76f
)
diff --git
a/builtin/submodule--helper.c
b/builtin/submodule--helper.c
index ee020d4749623ba57a3a72d236504f0636ee9062..6ba8587b6d3b7b8b1bc7a96451916c60210b093b 100644
(file)
--- a/
builtin/submodule--helper.c
+++ b/
builtin/submodule--helper.c
@@
-1042,7
+1042,7
@@
static int module_deinit(int argc, const char **argv, const char *prefix)
die(_("Use '--all' if you really want to deinitialize all submodules"));
if (module_list_compute(argc, argv, prefix, &pathspec, &list) < 0)
-
BUG("module_list_compute should not choke on empty pathspec")
;
+
return 1
;
info.prefix = prefix;
if (quiet)