summaryrefslogtreecommitdiffstats
path: root/ident.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-05-25 01:26:32 +0200
committerJunio C Hamano <gitster@pobox.com>2012-05-25 02:16:34 +0200
commitb00f6cfcd7232d90c4625c42eb9694d4ed2dc615 (patch)
treecb63343e84ce910adecca031203538f57ad3448f /ident.c
parentformat-patch: refactor get_patch_filename (diff)
downloadgit-b00f6cfcd7232d90c4625c42eb9694d4ed2dc615.tar.xz
git-b00f6cfcd7232d90c4625c42eb9694d4ed2dc615.zip
ident: reword empty ident error message
There's on point in printing the name, since it is by definition the empty string if we have reached this code path. Instead, let's be more clear that we are complaining about the empty name, but still show the email address that it is attached to (since that may provide some context to the user). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ident.c')
-rw-r--r--ident.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ident.c b/ident.c
index e279039ac5..f5160e1f43 100644
--- a/ident.c
+++ b/ident.c
@@ -281,7 +281,7 @@ const char *fmt_ident(const char *name, const char *email,
if (error_on_no_name) {
if (name == git_default_name.buf)
fputs(env_hint, stderr);
- die("empty ident %s <%s> not allowed", name, email);
+ die("empty ident name (for <%s>) not allowed", email);
}
pw = xgetpwuid_self();
name = pw->pw_name;