diff --git a/dist/index.js b/dist/index.js index b9b34d3..10dec11 100644 --- a/dist/index.js +++ b/dist/index.js @@ -407,7 +407,7 @@ class GitAuthHelper { } else { // Host git directory - let gitDir = path.join(this.git.getWorkingDirectory(), '.git'); + let gitDir = fs.realpathSync(path.join(this.git.getWorkingDirectory(), '.git')); gitDir = gitDir.replace(/\\/g, '/'); // Use forward slashes, even on Windows // Configure host includeIf const hostIncludeKey = `includeIf.gitdir:${gitDir}.path`; diff --git a/src/git-auth-helper.ts b/src/git-auth-helper.ts index e67db14..7c18894 100644 --- a/src/git-auth-helper.ts +++ b/src/git-auth-helper.ts @@ -367,7 +367,7 @@ class GitAuthHelper { ) } else { // Host git directory - let gitDir = path.join(this.git.getWorkingDirectory(), '.git') + let gitDir = fs.realpathSync(path.join(this.git.getWorkingDirectory(), '.git')) gitDir = gitDir.replace(/\\/g, '/') // Use forward slashes, even on Windows // Configure host includeIf