summaryrefslogtreecommitdiff
path: root/builtin/submodule--helper.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-06-06 21:18:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-06 21:18:55 (GMT)
commitf6136f3c39a4e7b9b98c11e69d38e15f5705204b (patch)
tree6fa35446df8efc267e17c139d08a3114024f37e3 /builtin/submodule--helper.c
parent6326f199252a1a5fbdea105473f8305d850cdd87 (diff)
parentb0f4b4084626ab0f87611acd89030e8bdf0b850e (diff)
downloadgit-f6136f3c39a4e7b9b98c11e69d38e15f5705204b.zip
git-f6136f3c39a4e7b9b98c11e69d38e15f5705204b.tar.gz
git-f6136f3c39a4e7b9b98c11e69d38e15f5705204b.tar.bz2
Merge branch 'sb/submodule-helper-list-signal-unmatch-via-exit-status'
The way how "submodule--helper list" signals unmatch error to its callers has been updated. * sb/submodule-helper-list-signal-unmatch-via-exit-status: submodule--helper: offer a consistent API
Diffstat (limited to 'builtin/submodule--helper.c')
-rw-r--r--builtin/submodule--helper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index 8da263f..f0b2c4f 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -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];