There was an error while loading. Please reload this page.
1 parent 71a8cd8 commit dde05f6Copy full SHA for dde05f6
src/Files.App/Utils/Git/GitHelpers.cs
@@ -9,6 +9,7 @@
9
using System.Net.Http;
10
using System.Net.Http.Json;
11
using System.Net.Sockets;
12
+using System.Text;
13
using System.Text.Json;
14
using System.Text.RegularExpressions;
15
@@ -96,7 +97,7 @@ public static void TryDispose()
96
97
? path
98
: GetGitRepositoryPath(PathNormalization.GetParentDir(path), root);
99
}
-catch (LibGit2SharpException ex)
100
+catch (Exception ex) when (ex is LibGit2SharpException or EncoderFallbackException)
101
{
102
_logger.LogWarning(ex.Message);
103
0 commit comments