diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-16 14:32:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-16 14:32:45 -0700 |
commit | 14f1467493a8d4c094b5f07fa2564b7e1b0eb7bc (patch) | |
tree | fa9dd851bbbb17089b4101a2ccc6e2efbd19674e /builtin/am.c | |
parent | df64186f63fef8daef0fb4aedfa76aaf22b70b75 (diff) | |
parent | 434c64df669284af7e19fafd0ab496bc075cd24b (diff) | |
download | git-14f1467493a8d4c094b5f07fa2564b7e1b0eb7bc.tar.gz |
Merge branch 'pt/am-builtin' into maint
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
Diffstat (limited to 'builtin/am.c')
-rw-r--r-- | builtin/am.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c index 4f77e07b95..3bd4fd701b 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -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; @@ -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")); |