Fix git-format-patch -s
When git-format-patch was converted to a builtin an appropriate call to setup_ident was missed and thus git-format-patch -s fails because it doesn't look up anything in the password file. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
cb115748ec
commit
6c4cca1c72
|
@ -220,8 +220,11 @@ int cmd_format_patch(int argc, const char **argv, char **envp)
|
||||||
}
|
}
|
||||||
else if (!strcmp(argv[i], "--signoff") ||
|
else if (!strcmp(argv[i], "--signoff") ||
|
||||||
!strcmp(argv[i], "-s")) {
|
!strcmp(argv[i], "-s")) {
|
||||||
const char *committer = git_committer_info(1);
|
const char *committer;
|
||||||
const char *endpos = strchr(committer, '>');
|
const char *endpos;
|
||||||
|
setup_ident();
|
||||||
|
committer = git_committer_info(1);
|
||||||
|
endpos = strchr(committer, '>');
|
||||||
if (!endpos)
|
if (!endpos)
|
||||||
die("bogos committer info %s\n", committer);
|
die("bogos committer info %s\n", committer);
|
||||||
add_signoff = xmalloc(endpos - committer + 2);
|
add_signoff = xmalloc(endpos - committer + 2);
|
||||||
|
|
Loading…
Reference in New Issue