Skip to content

Commit

Permalink
Gitmodule compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhardol committed Nov 29, 2020
1 parent 68a4c79 commit 067e22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GitCommands/Git/GitModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3017,7 +3017,7 @@ public IReadOnlyList<IGitRef> 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(@"^(?<objectid>[0-9a-f]{40})[ \t](?<refname>.+)$", RegexOptions.Multiline);
var regex = new Regex(@"^(?<objectid>[0-9a-f]{40})[ \t](?<refname>.+)$", RegexOptions.Multiline | RegexOptions.Compiled);

var matches = regex.Matches(refList);

Expand Down

0 comments on commit 067e22d

Please sign in to comment.