diff --git a/GitCommands/Git/GitModule.cs b/GitCommands/Git/GitModule.cs index 82a0f5aaaa3..e3b28c32086 100644 --- a/GitCommands/Git/GitModule.cs +++ b/GitCommands/Git/GitModule.cs @@ -3017,7 +3017,7 @@ public IReadOnlyList ParseRefs([NotNull] string refList) // // Lines may also use \t as a column delimiter, such as output of "ls-remote --heads origin". - var regex = new Regex(@"^(?[0-9a-f]{40})[ \t](?.+)$", RegexOptions.Multiline); + var regex = new Regex(@"^(?[0-9a-f]{40})[ \t](?.+)$", RegexOptions.Multiline | RegexOptions.Compiled); var matches = regex.Matches(refList);