@matheusbsbs / matheus-bagliano / commits / 303b3c1c46
Fork 0

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>

Emily Shaffer committed Feb 6, 2020 at 16:48 UTC 303b3c1c4685c020f5d408c997f060a1f8530895
1 file changed +1 -1
submodule.c
+1 -1
@@ -1478,7 +1478,7 @@ static int get_next_submodule(struct child_process *cp,
1478 !is_empty_dir(ce->name)) {
1479 spf->result = 1;
1480 strbuf_addf(err,
1481 - _("Could not access submodule '%s'"),
1481 + _("Could not access submodule '%s'\n"),
1482 ce->name);
1483 }
1484 }