Skip to content

Commit

Permalink
Merge branch 'pt/am-builtin' into maint
Browse files Browse the repository at this point in the history
When "git am" was rewritten as a built-in, it stopped paying
attention to user.signingkey, which was fixed.

* pt/am-builtin:
  am: configure gpg at startup
  • Loading branch information
Junio C Hamano committed Oct 16, 2015
2 parents df64186 + 434c64d commit 14f1467
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion builtin/am.c
Original file line number Diff line number Diff line change
Expand Up @@ -2208,6 +2208,17 @@ enum resume_mode {
RESUME_ABORT
};

static int git_am_config(const char *k, const char *v, void *cb)
{
int status;

status = git_gpg_config(k, v, NULL);
if (status)
return status;

return git_default_config(k, v, NULL);
}

int cmd_am(int argc, const char **argv, const char *prefix)
{
struct am_state state;
Expand Down Expand Up @@ -2308,7 +2319,7 @@ int cmd_am(int argc, const char **argv, const char *prefix)
OPT_END()
};

git_config(git_default_config, NULL);
git_config(git_am_config, NULL);

am_state_init(&state, git_path("rebase-apply"));

Expand Down

0 comments on commit 14f1467

Please sign in to comment.