mirror of
https://github.com/actions/checkout.git
synced 2025-10-15 15:11:21 +08:00
.
This commit is contained in:
@@ -319,8 +319,6 @@ class GitAuthHelper {
|
|||||||
// For local config, use includeIf.gitdir to match the .git directory.
|
// For local config, use includeIf.gitdir to match the .git directory.
|
||||||
// Configure for both host and container paths to support Docker container actions.
|
// Configure for both host and container paths to support Docker container actions.
|
||||||
let gitDir = path.join(this.git.getWorkingDirectory(), '.git')
|
let gitDir = path.join(this.git.getWorkingDirectory(), '.git')
|
||||||
console.log(`Git dir: ${gitDir}`)
|
|
||||||
core.info(`Git dir: ${gitDir}`)
|
|
||||||
// Use forward slashes for git config, even on Windows
|
// Use forward slashes for git config, even on Windows
|
||||||
gitDir = gitDir.replace(/\\/g, '/')
|
gitDir = gitDir.replace(/\\/g, '/')
|
||||||
const hostIncludeKey = `includeIf.gitdir:${gitDir}.path`
|
const hostIncludeKey = `includeIf.gitdir:${gitDir}.path`
|
||||||
|
Reference in New Issue
Block a user