diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index 448a4ba76..1aaa6bd9e 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -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()