git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Andrzej Ośmiałowski" <me@osmialowski.net>
To: git@vger.kernel.org
Subject: Git uses wrong subkey for signing commits with GPG key
Date: Sat, 13 Jan 2018 01:09:40 +0100	[thread overview]
Message-ID: <CAHLNBdVp0VTqtxHQ_cQ2XPMMDhqnQG5boj0M2JrT-iECaFUFZA@mail.gmail.com> (raw)

I have an issue with git and signing commits with GPG subkey.

My setup:
- master key used for certification only
- subkey for my main workstation
- subkey for my mobile workstation (a notebook).

Both subkeys are used for signing only.

I've configured git to use my specific subkey however it does not
work: git config --global user.signingkey = KEYID. Every commit is
being signed using the newest subkey. I've verified the same behavior
on three systems (although with the same setup). I've tried to use
--gpg-sign=KEYID flag, but it does not work either.

Environment:
OS: Archlinux
Shell: ZSH
GPG: 2.2.4
Git: 2.15.1.

Is there any other info I shall provide?

             reply	other threads:[~2018-01-13  0:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-13  0:09 Andrzej Ośmiałowski [this message]
2018-01-13  0:22 ` Git uses wrong subkey for signing commits with GPG key Todd Zullinger
2018-01-13 12:40   ` Andrzej Ośmiałowski
2018-01-13 17:25     ` Todd Zullinger
2018-01-16 18:23       ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHLNBdVp0VTqtxHQ_cQ2XPMMDhqnQG5boj0M2JrT-iECaFUFZA@mail.gmail.com \
    --to=me@osmialowski.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).