mirror of
https://github.com/actions/checkout.git
synced 2025-10-16 05:02:59 +08:00
.
This commit is contained in:
@@ -319,8 +319,6 @@ class GitAuthHelper {
|
||||
// For local config, use includeIf.gitdir to match the .git directory.
|
||||
// Configure for both host and container paths to support Docker container actions.
|
||||
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
|
||||
gitDir = gitDir.replace(/\\/g, '/')
|
||||
const hostIncludeKey = `includeIf.gitdir:${gitDir}.path`
|
||||
|
Reference in New Issue
Block a user