Skip to content

Commit 7e7ce32

Browse files
committed
Merge branch 'db/send-pack-user-signingkey' into maint
The low-level "git send-pack" did not honor 'user.signingkey' configuration variable when sending a signed-push. * db/send-pack-user-signingkey: builtin/send-pack.c: respect user.signingkey
2 parents 17850ef + d830d39 commit 7e7ce32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builtin/send-pack.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "transport.h"
1212
#include "version.h"
1313
#include "sha1-array.h"
14+
#include "gpg-interface.h"
1415

1516
static const char send_pack_usage[] =
1617
"git send-pack [--all | --mirror] [--dry-run] [--force] [--receive-pack=<git-receive-pack>] [--verbose] [--thin] [--atomic] [<host>:]<directory> [<ref>...]\n"
@@ -113,6 +114,8 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
113114
int from_stdin = 0;
114115
struct push_cas_option cas = {0};
115116

117+
git_config(git_gpg_config, NULL);
118+
116119
argv++;
117120
for (i = 1; i < argc; i++, argv++) {
118121
const char *arg = *argv;

0 commit comments

Comments
 (0)