Git - enable commit signing using SSH key (#201298)

This commit is contained in:
Ladislau Szomoru
2023-12-20 14:14:39 +01:00
committed by GitHub
parent d32043d8b8
commit b21537c2ef
3 changed files with 5 additions and 3 deletions

View File

@@ -46,7 +46,9 @@ function main(argv: string[]): void {
if (askpassType === 'ssh') {
if (/passphrase/i.test(request)) {
// passphrase
file = argv[6].replace(/^["']+|["':]+$/g, '');
// Commit signing - Enter passphrase:
// Git operation - Enter passphrase for key '/c/Users/<username>/.ssh/id_ed25519':
file = argv[6]?.replace(/^["']+|["':]+$/g, '');
} else {
// authenticity
host = argv[6].replace(/^["']+|["':]+$/g, '');