Suppress warnings from "git var -l"
For scripts using "git var -l" to read all logical variables at once, not all per-variable warnings will be relevant. So suppress them. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d33738d7d3
commit
c27b39252f
2
ident.c
2
ident.c
@ -205,7 +205,7 @@ const char *fmt_ident(const char *name, const char *email,
|
||||
if ((warn_on_no_name || error_on_no_name) &&
|
||||
name == git_default_name && env_hint) {
|
||||
fprintf(stderr, env_hint, au_env, co_env);
|
||||
env_hint = NULL; /* warn only once, for "git var -l" */
|
||||
env_hint = NULL; /* warn only once */
|
||||
}
|
||||
if (error_on_no_name)
|
||||
die("empty ident %s <%s> not allowed", name, email);
|
||||
|
Loading…
Reference in New Issue
Block a user