diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-24 14:05:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-24 14:05:18 -0700 |
commit | 18502e36061bb91131628032b5c46ea4fc8f18a3 (patch) | |
tree | 9bb2428e26d6c2da2d1f0e3255b23353b063dc6b | |
parent | 31c4c833d7c39e7fd681d5c0a4809030cbe455f5 (diff) | |
parent | f20f3878ac95e254ec6fd22b63cfb6eda67e5ded (diff) | |
download | git-18502e36061bb91131628032b5c46ea4fc8f18a3.tar.gz |
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
-rw-r--r-- | builtin/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index 95eeab1d51..20cef95d60 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -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) |