summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d19e06f)
raw | patch | inline | side by side (parent: d19e06f)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 7 Feb 2006 21:19:10 +0000 (13:19 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 9 Feb 2006 05:55:34 +0000 (21:55 -0800) |
Instead of silently allowing to create a bogus commit that lacks
information by mistake, complain loudly and die.
Signed-off-by: Junio C Hamano <junkio@cox.net>
information by mistake, complain loudly and die.
Signed-off-by: Junio C Hamano <junkio@cox.net>
ident.c | patch | blob | history |
index 0461b8b2f8148d6642689f8ba91af874f0243a1e..23b8cfc600dfa7910d6b9afdfed8bcdf8b033781 100644 (file)
--- a/ident.c
+++ b/ident.c
name = git_default_name;
if (!email)
email = git_default_email;
+
+ if (!*name || !*email)
+ die("empty ident %s <%s> not allowed",
+ name, email);
+
strcpy(date, git_default_date);
if (date_str)
parse_date(date_str, date, sizeof(date));