summaryrefslogtreecommitdiff
path: root/builtin/am.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-15 22:43:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-10-15 22:43:40 (GMT)
commit51a0908a6f3e996051b5df076cd20e8bd9712333 (patch)
tree16b97b33b48b87ef16f5ecd8b538baa5710f27da /builtin/am.c
parentb9d23c21104fd7eac8163b65248fae6e580291cc (diff)
parent434c64df669284af7e19fafd0ab496bc075cd24b (diff)
downloadgit-51a0908a6f3e996051b5df076cd20e8bd9712333.zip
git-51a0908a6f3e996051b5df076cd20e8bd9712333.tar.gz
git-51a0908a6f3e996051b5df076cd20e8bd9712333.tar.bz2
Merge branch 'pt/am-builtin'
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.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 4f77e07..3bd4fd7 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"));