зеркало из https://github.com/microsoft/git.git
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:
Родитель
b6d4d82bd5
Коммит
303b3c1c46
|
@ -1478,7 +1478,7 @@ static int get_next_submodule(struct child_process *cp,
|
||||||
!is_empty_dir(ce->name)) {
|
!is_empty_dir(ce->name)) {
|
||||||
spf->result = 1;
|
spf->result = 1;
|
||||||
strbuf_addf(err,
|
strbuf_addf(err,
|
||||||
_("Could not access submodule '%s'"),
|
_("Could not access submodule '%s'\n"),
|
||||||
ce->name);
|
ce->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче