Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/maint-commit-check-committer-early'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 24 Jul 2012 21:05:18 +0000
(14:05 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 24 Jul 2012 21:05:18 +0000
(14:05 -0700)
"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
builtin/commit.c
patch
|
blob
|
history
raw
(from parent 1:
31c4c83
)
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 95eeab1d5146628277b0ba2c4e4bc7a6f77f3a4a..20cef95d600aeb15b716793beb5fb2534cc2b682 100644
(file)
--- 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)