submodule--helper: offer a consistent API
[gitweb.git] / builtin / submodule--helper.c
index 8da263f0b0b086a74e23c2a5854bfa66623f70df..f0b2c4fe0bb4b71b3ccd7002702191ea4f46469e 100644 (file)
@@ -287,10 +287,8 @@ static int module_list(int argc, const char **argv, const char *prefix)
        argc = parse_options(argc, argv, prefix, module_list_options,
                             git_submodule_helper_usage, 0);
 
-       if (module_list_compute(argc, argv, prefix, &pathspec, &list) < 0) {
-               printf("#unmatched\n");
+       if (module_list_compute(argc, argv, prefix, &pathspec, &list) < 0)
                return 1;
-       }
 
        for (i = 0; i < list.nr; i++) {
                const struct cache_entry *ce = list.entries[i];