git/list[1] front-page[2] threads[3] people[4] search[5] about
 

(Bug Report Form, zh-Hans) git-subtree not respecting commit.gpgSign

From
Ffa <fa_ge-akarinnnnn@qq.com>
Date
Nov 1, 2025, 12:54 UTC
Message-ID
<tencent_D8444AABD439465DB4FA0D624A8E85A0220A@qq.com>
Dear git developers and maintainers,
I met some problems with git-subtree, it's little bothers me. Would you like to provide me some help? Here is the bug report form(localized).

感谢您填写 Git 错误报告! 请填写以下问卷,以帮助我们了解您的问题。

在错误发生之前,您做了什么?(重现问题的步骤) I tried to push a subtree managed folder to a remote. With configured commit.gpgSign=true.

您期望发生什么?(预期行为) All commits pushed to remote is signed by gpg.

实际发生了什么?(实际行为) Pushed commits are not signed as expected. Or, commit.gpgSign is not respected by git-subtree.

您所期望的与实际发生的有什么不同? Subtree generated commits are not signed, but signed commits is what I expected.

您想要补充的其它内容: I think checking commit.gpgSign before generating each commit is a good start point for fix this.

I pushed to https://github.com/Akarinnnnn/SteamworksParser. You can see from commit `a2883a6` on https://github.com/Akarinnnnn/SteamworksParser/commits/smart-anycpu-marshal are all not signed. Which is the starting point I use git-subtree to manage internal module.

请检查下面错误报告中余下的内容。 您可以删除任何您不想共享的内容。 I think checking commit.gpgSign before generating each commit is a good start point for fix this.

By the way, I pushed subtree managed content to You can see from commit `a2883a6` on https://github.com/Akarinnnnn/SteamworksParser/commits/smart-anycpu-marshal are all not signed. Which is the starting point I use git-subtree to manage internal module.

[系统信息] git 版本: git version 2.43.0.windows.1 cpu: x86_64 built from commit: 4b968f3ea3b32a7bc50846bab49f3f381841d297 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Windows 10.0 26200  编译器信息:gnuc: 13.2 libc 信息:libc 信息不可用 $SHELL (typically, interactive shell): pwsh

[启用的钩子]
	
Best regards,
    Fa鸽
Message 1 of 1 in “(Bug Report Form, zh-Hans) git-subtree not respecting commit.gpgSign”
  1. faNov 1, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.