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>
This commit is contained in:
Emily Shaffer 2020-02-06 16:48:33 -08:00 коммит произвёл Junio C Hamano
Родитель b6d4d82bd5
Коммит 303b3c1c46
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}
}