Skip to content

Commit 36c0e21

Browse files
committed
fix: IsLFSEnabled does not support submodule/worktree (#2635)
Signed-off-by: leo <longshuang@msn.cn>
1 parent ea8f7dd commit 36c0e21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ViewModels/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ public Models.GitFlowBranchType GetGitFlowType(Models.Branch b)
570570

571571
public bool IsLFSEnabled()
572572
{
573-
var path = Path.Combine(FullPath, ".git", "hooks", "pre-push");
573+
var path = Path.Combine(GitDir, "hooks", "pre-push");
574574
if (!File.Exists(path))
575575
return false;
576576

0 commit comments

Comments
 (0)