Skip to content

Commit 8989da7

Browse files
love-lingerooooo84
andcommitted
enhance: supports commit template with relative path (#1590)
Co-authored-by: King <[email protected]> Signed-off-by: leo <[email protected]>
1 parent 1742cbc commit 8989da7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ViewModels/WorkingCopy.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,6 +1635,9 @@ public ContextMenu CreateContextMenuForCommitMessages()
16351635

16361636
if (!string.IsNullOrEmpty(gitTemplate))
16371637
{
1638+
if (!Path.IsPathRooted(gitTemplate))
1639+
gitTemplate = Native.OS.GetAbsPath(_repo.FullPath, gitTemplate);
1640+
16381641
var friendlyName = gitTemplate;
16391642
if (!OperatingSystem.IsWindows())
16401643
{

0 commit comments

Comments
 (0)