vendor/libgit2/src/signature.c in rugged-0.21.0 vs vendor/libgit2/src/signature.c in rugged-0.21.1b0

- old
+ new

@@ -68,12 +68,12 @@ p->email = extract_trimmed(email, strlen(email)); if (p->name == NULL || p->email == NULL) return -1; /* oom */ - if (p->name[0] == '\0') { + if (p->name[0] == '\0' || p->email[0] == '\0') { git_signature_free(p); - return signature_error("Signature cannot have an empty name"); + return signature_error("Signature cannot have an empty name or email"); } p->when.time = time; p->when.offset = offset;