mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 17:16:30 +00:00
try using realpath
This commit is contained in:
parent
8e8c483db8
commit
71f4b77450
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -407,7 +407,7 @@ class GitAuthHelper {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Host git directory
|
// 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
|
gitDir = gitDir.replace(/\\/g, '/'); // Use forward slashes, even on Windows
|
||||||
// Configure host includeIf
|
// Configure host includeIf
|
||||||
const hostIncludeKey = `includeIf.gitdir:${gitDir}.path`;
|
const hostIncludeKey = `includeIf.gitdir:${gitDir}.path`;
|
||||||
|
|||||||
@ -367,7 +367,7 @@ class GitAuthHelper {
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
// Host git directory
|
// 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
|
gitDir = gitDir.replace(/\\/g, '/') // Use forward slashes, even on Windows
|
||||||
|
|
||||||
// Configure host includeIf
|
// Configure host includeIf
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user