Skip to content

Commit

Permalink
Repository check should be case insensitive (#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddynaka authored Apr 6, 2021
1 parent 46fce8c commit 092262c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sarif/GitHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 092262c

Please sign in to comment.