enhance: supports commit template with relative path (#1590)

Co-authored-by: King <badly1984@hotmail.com>
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-07-18 10:14:51 +08:00
parent 1742cbc311
commit 8989da7538

View File

@@ -1635,6 +1635,9 @@ namespace SourceGit.ViewModels
if (!string.IsNullOrEmpty(gitTemplate))
{
if (!Path.IsPathRooted(gitTemplate))
gitTemplate = Native.OS.GetAbsPath(_repo.FullPath, gitTemplate);
var friendlyName = gitTemplate;
if (!OperatingSystem.IsWindows())
{