Skip to content

Commit 18502e3

Browse files
committed
Merge branch 'jk/maint-commit-check-committer-early'
"git commit --amend" let the user edit the log message and then died when the human-readable committer name was given insufficiently by getpwent(3). * jk/maint-commit-check-committer-early: commit: check committer identity more strictly
2 parents 31c4c83 + f20f387 commit 18502e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
725725
strbuf_release(&sb);
726726

727727
/* This checks if committer ident is explicitly given */
728-
strbuf_addstr(&committer_ident, git_committer_info(0));
728+
strbuf_addstr(&committer_ident, git_committer_info(IDENT_STRICT));
729729
if (use_editor && include_status) {
730730
char *ai_tmp, *ci_tmp;
731731
if (whence != FROM_COMMIT)

0 commit comments

Comments
 (0)