diff --git a/src/Sarif/GitHelper.cs b/src/Sarif/GitHelper.cs index 055ef3c75..496742434 100644 --- a/src/Sarif/GitHelper.cs +++ b/src/Sarif/GitHelper.cs @@ -43,7 +43,7 @@ public bool IsRepositoryRoot(string repoPath) repoPath.Substring(0, repoPath.Length - 1) : repoPath; - return repoPath.Equals(GetTopLevel(repoPath)); + return repoPath.Equals(GetTopLevel(repoPath), StringComparison.OrdinalIgnoreCase); } public GitHelper(IFileSystem fileSystem = null, ProcessRunner processRunner = null)