fast-import: don't fail on omitted committer name
[gitweb.git] / fast-import.c
index 78d978684da2e2b79340c138e1b6300100df1221..c07f155723c8bd3ff724e0a4a1c93842c8b985ca 100644 (file)
@@ -1971,6 +1971,10 @@ static char *parse_ident(const char *buf)
        size_t name_len;
        char *ident;
 
+       /* ensure there is a space delimiter even if there is no name */
+       if (*buf == '<')
+               --buf;
+
        gt = strrchr(buf, '>');
        if (!gt)
                die("Missing > in ident string: %s", buf);