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
maint
Junio C Hamano 2012-07-24 14:05:18 -07:00
commit 18502e3606
1 changed files with 1 additions and 1 deletions

View File

@ -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)