X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=ident.c;h=26409b2a1b191765706265c2aa6d2ae163ba5bab;hb=b706fcfe93262e485976ed2bc648b779cc47981f;hp=09cf0c95c9bfc24fa3e4a8f9e212ec42b8a55eba;hpb=a1eb73d917e15cd97314e0a39cbe857329339a96;p=git.git diff --git a/ident.c b/ident.c index 09cf0c95c..26409b2a1 100644 --- a/ident.c +++ b/ident.c @@ -121,6 +121,7 @@ static int crud(unsigned char c) c == '<' || c == '>' || c == '"' || + c == '\\' || c == '\''; } @@ -204,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);