From 71f4b77450509d640af3a3a9ec97b979fa8dae10 Mon Sep 17 00:00:00 2001 From: Keith Bauson Date: Thu, 4 Dec 2025 12:22:40 -0500 Subject: [PATCH] try using realpath --- dist/index.js | 2 +- src/git-auth-helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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