Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/ViewModels/Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,15 @@ public bool IsLFSEnabled()
if (!File.Exists(path))
return false;

var content = File.ReadAllText(path);
return content.Contains("git lfs pre-push");
try
{
var content = File.ReadAllText(path);
return content.Contains("git lfs pre-push");
}
catch
{
return false;
}
}

public async Task InstallLFSAsync()
Expand Down