зеркало из https://github.com/microsoft/git.git
scalar diagnose: accommodate Scalar's Functional Tests
Those tests specifically verify that the `.zip` file path is shown on `stdout`. Let's do that again, under the assumption that there are scripts out there that rely on this behavior. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Родитель
01dbeaae79
Коммит
cf09c15228
11
diagnose.c
11
diagnose.c
|
@ -385,10 +385,13 @@ int create_diagnostics_archive(struct strbuf *zip_path, enum diagnose_mode mode)
|
||||||
goto diagnose_cleanup;
|
goto diagnose_cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "\n"
|
strbuf_reset(&buf);
|
||||||
"Diagnostics complete.\n"
|
strbuf_addf(&buf, "\n"
|
||||||
"All of the gathered info is captured in '%s'\n",
|
"Diagnostics complete.\n"
|
||||||
zip_path->buf);
|
"All of the gathered info is captured in '%s'\n",
|
||||||
|
zip_path->buf);
|
||||||
|
write_or_die(stdout_fd, buf.buf, buf.len);
|
||||||
|
write_or_die(2, buf.buf, buf.len);
|
||||||
|
|
||||||
diagnose_cleanup:
|
diagnose_cleanup:
|
||||||
if (archiver_fd >= 0) {
|
if (archiver_fd >= 0) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче