3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2026-01-14 07:36:16 +00:00
This commit is contained in:
Keith Bauson 2026-01-10 01:41:19 +05:30 committed by GitHub
commit 48b341bcaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 27 additions and 4 deletions

View file

@ -177,7 +177,9 @@ class GitAuthHelper {
// Configure both host and container paths to support Docker container actions.
for (const configPath of configPaths) {
// Submodule Git directory
let submoduleGitDir = path.dirname(configPath) // The config file is at .git/modules/submodule-name/config
let submoduleGitDir = await fs.promises.realpath(
path.dirname(configPath)
) // The config file is at .git/modules/submodule-name/config
submoduleGitDir = submoduleGitDir.replace(/\\/g, '/') // Use forward slashes, even on Windows
// Configure host includeIf
@ -367,7 +369,9 @@ class GitAuthHelper {
)
} else {
// Host git directory
let gitDir = path.join(this.git.getWorkingDirectory(), '.git')
let gitDir = await fs.promises.realpath(
path.join(this.git.getWorkingDirectory(), '.git')
)
gitDir = gitDir.replace(/\\/g, '/') // Use forward slashes, even on Windows
// Configure host includeIf