0
1
Fork 0

Update src/url-helper.ts

Co-authored-by: Josh Gross <joshmgross@github.com>
This commit is contained in:
Cory Miller 2024-04-18 15:12:57 -04:00 committed by GitHub
parent a65c1f84e9
commit e0908c08dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
const encodedOwner = encodeURIComponent(settings.repositoryOwner)
const encodedName = encodeURIComponent(settings.repositoryName)
if (settings.sshKey) {
let user = settings.sshUser.length > 0 ? settings.sshUser : 'git'
const user = settings.sshUser.length > 0 ? settings.sshUser : 'git'
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`
}