TortoiseGit 的开始提交挂钩执行得太晚了
TortoiseGit's start-commit hook is executed too late
我在 Windows 10 上使用 TortoiseGit 2.8.0.0 和 Git 2.20.1.windows.1。在 TGit 中我指定a start_commit_hook 从本地存储库的主文件夹执行 .bat
文件。
Start-commit: Called before the commit dialog is shown. You might want to use this if the hook modifies a versioned file and affects the list of files that need to be committed and/or commit message. However you should note that because the hook is called at an early stage, the full list of objects selected for commit is not available.
确实这就是我想要的:钩子应该在提交之前修改一些文件,而这与提交消息无关。
问题:钩子脚本的执行时间比预期晚。这发生在执行提交之后,这导致文件在提交完成后被更改。
我是否遗漏了任何要配置的内容?
稳定版有bug。请暂时使用 latest preview 直到下一个稳定版本 >= 2.9 发布。
更新:
稳定版 >= 2.9 发布,详见https://tortoisegit.org/download/
我在 Windows 10 上使用 TortoiseGit 2.8.0.0 和 Git 2.20.1.windows.1。在 TGit 中我指定a start_commit_hook 从本地存储库的主文件夹执行 .bat
文件。
Start-commit: Called before the commit dialog is shown. You might want to use this if the hook modifies a versioned file and affects the list of files that need to be committed and/or commit message. However you should note that because the hook is called at an early stage, the full list of objects selected for commit is not available.
确实这就是我想要的:钩子应该在提交之前修改一些文件,而这与提交消息无关。
问题:钩子脚本的执行时间比预期晚。这发生在执行提交之后,这导致文件在提交完成后被更改。
我是否遗漏了任何要配置的内容?
稳定版有bug。请暂时使用 latest preview 直到下一个稳定版本 >= 2.9 发布。
更新: 稳定版 >= 2.9 发布,详见https://tortoisegit.org/download/