builtin-init-db: use warning() instead of fprintf(stderr, "warning: ")
Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
78509d2197
commit
2fd8c0a5db
|
|
@ -130,8 +130,7 @@ static void copy_templates(const char *template_dir)
|
||||||
}
|
}
|
||||||
dir = opendir(template_path);
|
dir = opendir(template_path);
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
fprintf(stderr, "warning: templates not found %s\n",
|
warning("templates not found %s", template_dir);
|
||||||
template_dir);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -144,8 +143,8 @@ static void copy_templates(const char *template_dir)
|
||||||
|
|
||||||
if (repository_format_version &&
|
if (repository_format_version &&
|
||||||
repository_format_version != GIT_REPO_VERSION) {
|
repository_format_version != GIT_REPO_VERSION) {
|
||||||
fprintf(stderr, "warning: not copying templates of "
|
warning("not copying templates of "
|
||||||
"a wrong format version %d from '%s'\n",
|
"a wrong format version %d from '%s'",
|
||||||
repository_format_version,
|
repository_format_version,
|
||||||
template_dir);
|
template_dir);
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue