aboutsummaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-24 14:05:18 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-24 14:05:18 -0700
commit18502e36061bb91131628032b5c46ea4fc8f18a3 (patch)
tree9bb2428e26d6c2da2d1f0e3255b23353b063dc6b /builtin/commit.c
parent31c4c833d7c39e7fd681d5c0a4809030cbe455f5 (diff)
parentf20f3878ac95e254ec6fd22b63cfb6eda67e5ded (diff)
downloadgit-18502e36061bb91131628032b5c46ea4fc8f18a3.tar.gz
git-18502e36061bb91131628032b5c46ea4fc8f18a3.tar.xz
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
Diffstat (limited to 'builtin/commit.c')
-rw-r--r--builtin/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c
index 95eeab1d5..20cef95d6 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)