This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -464,8 +464,8 @@ public int CompareTo(object obj)
464
464
465
465
public bool HasExtension ( params string [ ] extensions )
466
466
{
467
- var extensionWithDotLower = ExtensionWithDot . ToLower ( CultureInfo . InvariantCulture ) ;
468
- return extensions . Any ( e => WithDot ( e ) . ToLower ( CultureInfo . InvariantCulture ) == extensionWithDotLower ) ;
467
+ var extensionWithDotLower = ExtensionWithDot . ToUpperInvariant ( ) ;
468
+ return extensions . Any ( e => WithDot ( e ) . ToUpperInvariant ( ) == extensionWithDotLower ) ;
469
469
}
470
470
471
471
private static string WithDot ( string extension )
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public bool IsGitLfsExtracted()
99
99
var calculateMd5 = environment . FileSystem . CalculateMD5 ( GitLfsExecutablePath ) ;
100
100
logger . Trace ( "GitLFS MD5: {0}" , calculateMd5 ) ;
101
101
var md5 = environment . IsWindows ? WindowsGitLfsExecutableMD5 : MacGitLfsExecutableMD5 ;
102
- if ( md5 . Equals ( calculateMd5 , StringComparison . InvariantCultureIgnoreCase ) )
102
+ if ( md5 . Equals ( calculateMd5 , StringComparison . OrdinalIgnoreCase ) )
103
103
{
104
104
logger . Trace ( "{0} has incorrect MD5" , GitExecutablePath ) ;
105
105
return false ;
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ public override void LineReceived(string line)
135
135
136
136
case ProcessingPhase . Summary :
137
137
{
138
- var idx = line . IndexOf ( "---GHUBODYEND---" , StringComparison . InvariantCulture ) ;
138
+ var idx = line . IndexOf ( "---GHUBODYEND---" , StringComparison . Ordinal ) ;
139
139
var oneliner = idx >= 0 ;
140
140
if ( oneliner )
141
141
{
Original file line number Diff line number Diff line change @@ -56,10 +56,10 @@ public override void LineReceived(string line)
56
56
57
57
private void ReturnRemote ( )
58
58
{
59
- var modes = currentModes . Select ( s => s . ToLowerInvariant ( ) ) . ToArray ( ) ;
59
+ var modes = currentModes . Select ( s => s . ToUpperInvariant ( ) ) . ToArray ( ) ;
60
60
61
- var isFetch = modes . Contains ( "fetch " ) ;
62
- var isPush = modes . Contains ( "push " ) ;
61
+ var isFetch = modes . Contains ( "FETCH " ) ;
62
+ var isPush = modes . Contains ( "PUSH " ) ;
63
63
64
64
GitRemoteFunction remoteFunction ;
65
65
if ( isFetch && isPush )
You can’t perform that action at this time.
0 commit comments