summaryrefslogtreecommitdiff
path: root/builtin-init-db.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-24 02:09:13 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-23 21:02:26 -0700
commit2fd8c0a5dbc614a6a7853558e4af8298acefc96a (patch)
tree58c1fbf441ce2b815dbc32fbd19dc814c26aeea2 /builtin-init-db.c
parent78509d2197ff18d1de02c27a5406328f75b95306 (diff)
downloadgit-2fd8c0a5dbc614a6a7853558e4af8298acefc96a.tar.gz
builtin-init-db: use warning() instead of fprintf(stderr, "warning: ")
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-init-db.c')
-rw-r--r--builtin-init-db.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/builtin-init-db.c b/builtin-init-db.c
index ee3911f8ee..fc63d0fce5 100644
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
@@ -130,8 +130,7 @@ static void copy_templates(const char *template_dir)
}
dir = opendir(template_path);
if (!dir) {
- fprintf(stderr, "warning: templates not found %s\n",
- template_dir);
+ warning("templates not found %s", template_dir);
return;
}
@@ -144,8 +143,8 @@ static void copy_templates(const char *template_dir)
if (repository_format_version &&
repository_format_version != GIT_REPO_VERSION) {
- fprintf(stderr, "warning: not copying templates of "
- "a wrong format version %d from '%s'\n",
+ warning("not copying templates of "
+ "a wrong format version %d from '%s'",
repository_format_version,
template_dir);
closedir(dir);