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 https://github.com/git-for-windows/git/issues/850 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Sep 9, 2016 at 14:28 UTC 2afe6b733e002f6bf5976988646fdcd610b129dc
1 file changed +3
lib/commit.tcl
+3
@@ -369,6 +369,9 @@ A rescan will be automatically started now.
369 # -- Create the commit.
370 #
371 set cmd [list commit-tree $tree_id]
372 + if {[is_config_true commit.gpgsign]} {
373 + lappend cmd -S
374 + }
375 foreach p [concat $PARENT $MERGE_HEAD] {
376 lappend cmd -p $p
377 }