summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-06-18 20:18:21 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-06-18 20:18:21 -0700
commit72afd3eea6758a5ef181eaa3eef0b21639177494 (patch)
tree129c7cc117ac43febec9bdc9f66224573a00a7f9
parentFix PPC SHA1 routine for large input buffers (diff)
parentFix git-format-patch -s (diff)
downloadtgif-72afd3eea6758a5ef181eaa3eef0b21639177494.tar.xz
Merge branch 'eb/mail'
* eb/mail: Fix git-format-patch -s
-rw-r--r--builtin-log.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/builtin-log.c b/builtin-log.c
index 6afa66ce02..9187fd337b 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -220,8 +220,11 @@ int cmd_format_patch(int argc, const char **argv, char **envp)
}
else if (!strcmp(argv[i], "--signoff") ||
!strcmp(argv[i], "-s")) {
- const char *committer = git_committer_info(1);
- const char *endpos = strchr(committer, '>');
+ const char *committer;
+ const char *endpos;
+ setup_ident();
+ committer = git_committer_info(1);
+ endpos = strchr(committer, '>');
if (!endpos)
die("bogos committer info %s\n", committer);
add_signoff = xmalloc(endpos - committer + 2);