Compare commits

..

No commits in common. "eb237700fe6043a473364652f9c7ab5f53200717" and "a65c1f84e92343d43178048aca74848262e66902" have entirely different histories.

4 changed files with 2 additions and 4 deletions

View File

@ -64,7 +64,6 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
# The user to use when connecting to the remote SSH host. By default 'git' is # The user to use when connecting to the remote SSH host. By default 'git' is
# used. # used.
# Default: git
ssh-user: '' ssh-user: ''
# Whether to configure the token or SSH key with the local git config # Whether to configure the token or SSH key with the local git config

View File

@ -48,7 +48,6 @@ inputs:
ssh-user: ssh-user:
description: > description: >
The user to use when connecting to the remote SSH host. By default 'git' is used. The user to use when connecting to the remote SSH host. By default 'git' is used.
default: git
persist-credentials: persist-credentials:
description: 'Whether to configure the token or SSH key with the local git config' description: 'Whether to configure the token or SSH key with the local git config'
default: true default: true

2
dist/index.js vendored
View File

@ -2401,7 +2401,7 @@ function getFetchUrl(settings) {
const encodedOwner = encodeURIComponent(settings.repositoryOwner); const encodedOwner = encodeURIComponent(settings.repositoryOwner);
const encodedName = encodeURIComponent(settings.repositoryName); const encodedName = encodeURIComponent(settings.repositoryName);
if (settings.sshKey) { if (settings.sshKey) {
const user = settings.sshUser.length > 0 ? settings.sshUser : 'git'; let user = settings.sshUser.length > 0 ? settings.sshUser : 'git';
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`; return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
} }
// "origin" is SCHEME://HOSTNAME[:PORT] // "origin" is SCHEME://HOSTNAME[:PORT]

View File

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