Skip to content

Commit

Permalink
Use Path.DirectorySeparatorChar to create mutex name
Browse files Browse the repository at this point in the history
  • Loading branch information
bording authored and arturcic committed Apr 28, 2021
1 parent f2791bb commit 92f3d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GitVersion.App/GitVersionExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public int Execute(GitVersionOptions gitVersionOptions)

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

try
Expand Down

0 comments on commit 92f3d5b

Please sign in to comment.