Set user.signingKey to ssh-key

This commit is contained in:
Wojciech Pawlik 2023-04-09 20:59:01 +02:00
parent 8f4b7f8486
commit b8a48d8f8e
No known key found for this signature in database
3 changed files with 9 additions and 1 deletions

View file

@ -14,6 +14,7 @@ import {IGitSourceSettings} from './git-source-settings'
const IS_WINDOWS = process.platform === 'win32'
const SSH_COMMAND_KEY = 'core.sshCommand'
const SIGNING_KEY = 'user.signingKey'
export interface IGitAuthHelper {
configureAuth(): Promise<void>
@ -269,6 +270,7 @@ class GitAuthHelper {
// Configure core.sshCommand
if (this.settings.persistCredentials) {
await this.git.config(SSH_COMMAND_KEY, this.sshCommand)
await this.git.config(SIGNING_KEY, this.sshKeyPath)
}
}