summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2020-02-07 00:48:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-02-07 19:05:45 (GMT)
commit303b3c1c4685c020f5d408c997f060a1f8530895 (patch)
tree407c69c7f945421c1b0f818d9b015556bc00af55 /submodule.c
parentb6d4d82bd5a49197d5d2f4f81c08da0d461cfcf1 (diff)
downloadgit-303b3c1c4685c020f5d408c997f060a1f8530895.zip
git-303b3c1c4685c020f5d408c997f060a1f8530895.tar.gz
git-303b3c1c4685c020f5d408c997f060a1f8530895.tar.bz2
submodule: add newline on invalid submodule error
Since 'err' contains output for multiple submodules and is printed all at once by fetch_populated_submodules(), errors for each submodule should be newline separated for readability. The same strbuf is added to with a newline in the other half of the conditional where this error is detected, so make the two consistent. Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.c b/submodule.c
index 9da7181..a2e2239 100644
--- a/submodule.c
+++ b/submodule.c
@@ -1478,7 +1478,7 @@ static int get_next_submodule(struct child_process *cp,
!is_empty_dir(ce->name)) {
spf->result = 1;
strbuf_addf(err,
- _("Could not access submodule '%s'"),
+ _("Could not access submodule '%s'\n"),
ce->name);
}
}