Skip to content

Commit 2081fa7

Browse files
committed
Merge branch 'pc/submodule-helper'
Hotfix. * pc/submodule-helper: submodule deinit: handle non existing pathspecs gracefully
2 parents 87cc76f + 9748e39 commit 2081fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/submodule--helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ static int module_deinit(int argc, const char **argv, const char *prefix)
10421042
die(_("Use '--all' if you really want to deinitialize all submodules"));
10431043

10441044
if (module_list_compute(argc, argv, prefix, &pathspec, &list) < 0)
1045-
BUG("module_list_compute should not choke on empty pathspec");
1045+
return 1;
10461046

10471047
info.prefix = prefix;
10481048
if (quiet)

0 commit comments

Comments
 (0)