Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin-init-db: use warning() instead of fprintf(stderr, "warning: ")
author
Miklos Vajna
<vmiklos@frugalware.org>
Tue, 24 Mar 2009 01:09:13 +0000
(
02:09
+0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 24 Mar 2009 04:02:26 +0000
(21:02 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-init-db.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
78509d2
)
diff --git
a/builtin-init-db.c
b/builtin-init-db.c
index ee3911f8eef5c00eeb4868c843f2b8c5c83d688d..fc63d0fce5d3067bec884ac3ccaf12e0fd0d4468 100644
(file)
--- 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) {
}
dir = opendir(template_path);
if (!dir) {
- fprintf(stderr, "warning: templates not found %s\n",
- template_dir);
+ warning("templates not found %s", template_dir);
return;
}
return;
}
@@
-144,8
+143,8
@@
static void copy_templates(const char *template_dir)
if (repository_format_version &&
repository_format_version != GIT_REPO_VERSION) {
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);
repository_format_version,
template_dir);
closedir(dir);