|
@@ -412,6 +412,9 @@ class GitAuthHelper {
|
|
|
// Configure host includeIf
|
|
// Configure host includeIf
|
|
|
const hostIncludeKey = `includeIf.gitdir:${gitDir}.path`;
|
|
const hostIncludeKey = `includeIf.gitdir:${gitDir}.path`;
|
|
|
yield this.git.config(hostIncludeKey, credentialsConfigPath);
|
|
yield this.git.config(hostIncludeKey, credentialsConfigPath);
|
|
|
|
|
+ // Configure host includeIf for worktrees
|
|
|
|
|
+ const hostWorktreeIncludeKey = `includeIf.gitdir:${gitDir}/worktrees/*.path`;
|
|
|
|
|
+ yield this.git.config(hostWorktreeIncludeKey, credentialsConfigPath);
|
|
|
// Container git directory
|
|
// Container git directory
|
|
|
const workingDirectory = this.git.getWorkingDirectory();
|
|
const workingDirectory = this.git.getWorkingDirectory();
|
|
|
const githubWorkspace = process.env['GITHUB_WORKSPACE'];
|
|
const githubWorkspace = process.env['GITHUB_WORKSPACE'];
|
|
@@ -424,6 +427,9 @@ class GitAuthHelper {
|
|
|
// Configure container includeIf
|
|
// Configure container includeIf
|
|
|
const containerIncludeKey = `includeIf.gitdir:${containerGitDir}.path`;
|
|
const containerIncludeKey = `includeIf.gitdir:${containerGitDir}.path`;
|
|
|
yield this.git.config(containerIncludeKey, containerCredentialsPath);
|
|
yield this.git.config(containerIncludeKey, containerCredentialsPath);
|
|
|
|
|
+ // Configure container includeIf for worktrees
|
|
|
|
|
+ const containerWorktreeIncludeKey = `includeIf.gitdir:${containerGitDir}/worktrees/*.path`;
|
|
|
|
|
+ yield this.git.config(containerWorktreeIncludeKey, containerCredentialsPath);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|