Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Files.App/Utils/Git/GitHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Net.Http;
using System.Net.Http.Json;
using System.Net.Sockets;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;

Expand Down Expand Up @@ -96,7 +97,7 @@ public static void TryDispose()
? path
: GetGitRepositoryPath(PathNormalization.GetParentDir(path), root);
}
catch (LibGit2SharpException ex)
catch (Exception ex) when (ex is LibGit2SharpException or EncoderFallbackException)
{
_logger.LogWarning(ex.Message);

Expand Down