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>
Eric W. Biederman committed
Jun 12, 2006 at 13:31 UTC
6c4cca1c72f98c84a21a2d1916a8e86be57d26e6
1 file changed
+5
-2
builtin-log.c
+5
-2
@@ -220,8 +220,11 @@ int cmd_format_patch(int argc, const char **argv, char **envp)
220
}
221
else if (!strcmp(argv[i], "--signoff") ||
222
!strcmp(argv[i], "-s")) {
223
- const char *committer = git_committer_info(1);
224
- const char *endpos = strchr(committer, '>');
223
+ const char *committer;
224
+ const char *endpos;
225
+ setup_ident();
226
+ committer = git_committer_info(1);
227
+ endpos = strchr(committer, '>');
228
if (!endpos)
229
die("bogos committer info %s\n", committer);
230
add_signoff = xmalloc(endpos - committer + 2);