Browse Source

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 13 years ago
parent
commit
18502e3606
  1. 2
      builtin/commit.c

2
builtin/commit.c

@ -725,7 +725,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix, @@ -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)

Loading…
Cancel
Save