Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Nice error message for empty idents

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:19

Petr Baudis [off-list ref] writes:
	$ git-rev-list --help
	fatal: Not a git repository
Hmph, true.  Ideas?
I agree that the error message itself is bad.
-	if (!*name || !*email)
-		die("empty ident %s <%s> not allowed",
-		    name, email);
+	if (!*name)
+		die("empty realname not allowed - please set a realname for your login or use GIT_AUTHOR_NAME");
+	if (!*email)
+		die("empty email not allowed - please set your GIT_AUTHOR_EMAIL to a non-empty value");
I've considered doing this, but didn't do it that way, because I
could not figure out what to do with GIT_COMMITTER_NAME.  Also
it might make sense to suggest user.name configuration item in
the error/help message.  Ideas?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help