-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git gui no longer respects [commit] gpgsign = true #850
Comments
Is this a Windows-specific issue? I guess you have no easy way to test on Linux... |
I have no idea whether it is Windows specific. I just know that the issue does exist in Git for Windows. |
From a quick test using Ubuntu 16.04 x86_64 on VirtualBox, this issue does not appear to occur on Linux.
|
@landstander668 Did you create the commit with |
No, I somehow managed to completely overlook that detail. :( Sorry for the noise. |
@landstander668 if you get a chance, could you try with |
I can reproduce this issue using |
Thanks for testing this! My guess is that the culprit is described in this part of 2.9.0's release notes:
So I guess we would have to patch Most likely, we will have to patch # -- Create the commit.
#
set cmd [list commit-tree $tree_id]
+ if {[is_config_true commit.gpgsign]} {
+ lappend cmd -S
+ }
foreach p [concat $PARENT $MERGE_HEAD] {
lappend cmd -p $p
} @landstander668 could you test this? The |
I can confirm patching my |
@retep998 awesome! Thanks for your feedback. |
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing in Git GUI. This fixes git-for-windows#850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing in Git GUI. This fixes git-for-windows#850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Git GUI [respects the `commit.gpgsign` setting again](git-for-windows/git#850). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
There is now a prerelease with the fix: https://github.com/git-for-windows/git/releases/tag/prerelease-v2.10.0.windows.1.11.geda474c |
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing in Git GUI. This fixes git-for-windows#850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing in Git GUI. This fixes #850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Shouldn't this be relayed to the main git repo as well? It basically has the same problem. |
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing with GPG signature in Git GUI. This fixes git-for-windows#850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing in Git GUI. This fixes git-for-windows#850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@hasufell of course. That's what I did, too: https://public-inbox.org/git/550e7de5e08e53b5893e1ce021bffee468adfc9d.1473424091.git.johannes.schindelin@gmx.de/ |
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing in Git GUI. This fixes #850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing in Git GUI. This fixes git-for-windows/git#850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign` config setting. This broke committing in Git GUI. This fixes git-for-windows/git#850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
or closed issue
matching what I'm seeing
Setup
Which version of Git for Windows are you using? 32-bit or 64-bit? Include the
output of
git version
as well.Git 2.9.2 64-bit.
Still broken as of
git version 2.9.3.windows.1
Which version of Windows are you running? 32-bit or 64-bit?
Windows 10 64-bit
What options did you set as part of the installation? Or did you choose the
defaults?
Typical upgrade with Git in my PATH and using mintty for git bash.
Any other interesting things about your environment that might be related
to the issue you're seeing?
I just upgraded from Git 2.8.x which did not have this issue.
Details
Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Powershell inside conhost.
What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
What did you expect to occur after running these commands?
I expect commits created by git gui to be gpg signed. This is the behavior that happened in previous versions of Git without issue.
What actually happened instead?
The commits were not gpg signed.
If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
Happens to any git repo
The text was updated successfully, but these errors were encountered: