Skip to content

Commit 92f3d5b

Browse files
bordingarturcic
authored andcommitted
Use Path.DirectorySeparatorChar to create mutex name
1 parent f2791bb commit 92f3d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersion.App/GitVersionExecutor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public int Execute(GitVersionOptions gitVersionOptions)
5757

5858
private int RunGitVersionTool(GitVersionOptions gitVersionOptions)
5959
{
60-
var mutexName = gitVersionOptions.WorkingDirectory.Replace("\\", "");
60+
var mutexName = gitVersionOptions.WorkingDirectory.Replace(Path.DirectorySeparatorChar.ToString(), "");
6161
using var mutex = new Mutex(true, $@"Global\{mutexName}", out var acquired);
6262

6363
try

0 commit comments

Comments
 (0)