Skip to content

Commit 4d1da93

Browse files
bordingarturcic
authored andcommitted
Use .git directory for mutex name
1 parent ecf7f70 commit 4d1da93

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(Path.DirectorySeparatorChar.ToString(), "");
60+
var mutexName = repositoryInfo.DotGitDirectory.Replace(Path.DirectorySeparatorChar.ToString(), "");
6161
using var mutex = new Mutex(true, $@"Global\{mutexName}", out var acquired);
6262

6363
try

0 commit comments

Comments
 (0)