Skip to content

Commit 2afe6b7

Browse files
dschogitster
authored andcommitted
git-gui: respect commit.gpgsign again
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 #850 Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4498b3a commit 2afe6b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/commit.tcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ A rescan will be automatically started now.
369369
# -- Create the commit.
370370
#
371371
set cmd [list commit-tree $tree_id]
372+
if {[is_config_true commit.gpgsign]} {
373+
lappend cmd -S
374+
}
372375
foreach p [concat $PARENT $MERGE_HEAD] {
373376
lappend cmd -p $p
374377
}

0 commit comments

Comments
 (0)