Skip to content

Commit

Permalink
Merge branch 'jk/maint-commit-check-committer-early'
Browse files Browse the repository at this point in the history
"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
  • Loading branch information
Junio C Hamano committed Jul 24, 2012
2 parents 31c4c83 + f20f387 commit 18502e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
strbuf_release(&sb);

/* This checks if committer ident is explicitly given */
strbuf_addstr(&committer_ident, git_committer_info(0));
strbuf_addstr(&committer_ident, git_committer_info(IDENT_STRICT));
if (use_editor && include_status) {
char *ai_tmp, *ci_tmp;
if (whence != FROM_COMMIT)
Expand Down

0 comments on commit 18502e3

Please sign in to comment.