mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 14:29:23 +00:00
Update genfiles
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -2401,7 +2401,7 @@ function getFetchUrl(settings) {
|
||||
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`;
|
||||
}
|
||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
||||
|
||||
Reference in New Issue
Block a user