This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 27
27
28
28
using System ;
29
29
using System . Collections . Generic ;
30
+ using System . Globalization ;
30
31
using System . Linq ;
31
32
using System . Text ;
32
33
@@ -463,8 +464,8 @@ public int CompareTo(object obj)
463
464
464
465
public bool HasExtension ( params string [ ] extensions )
465
466
{
466
- var extensionWithDotLower = ExtensionWithDot . ToLower ( ) ;
467
- return extensions . Any ( e => WithDot ( e ) . ToLower ( ) == extensionWithDotLower ) ;
467
+ var extensionWithDotLower = ExtensionWithDot . ToLower ( CultureInfo . InvariantCulture ) ;
468
+ return extensions . Any ( e => WithDot ( e ) . ToLower ( CultureInfo . InvariantCulture ) == extensionWithDotLower ) ;
468
469
}
469
470
470
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 ( String . Compare ( calculateMd5 , md5 , true ) != 0 )
102
+ if ( md5 . Equals ( calculateMd5 , StringComparison . InvariantCultureIgnoreCase ) )
103
103
{
104
104
logger . Trace ( "{0} has incorrect MD5" , GitExecutablePath ) ;
105
105
return false ;
You can’t perform that action at this time.
0 commit comments