From 2c13ef78e5bb7bf30f9a85b1f886318302bdcd34 Mon Sep 17 00:00:00 2001 From: Eddy Nakamura Date: Tue, 6 Apr 2021 17:38:44 -0300 Subject: [PATCH] Repository check should be case insensitive --- src/Sarif/GitHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)