mirror of
https://github.com/actions/checkout.git
synced 2026-01-20 15:48:55 +08:00
.
This commit is contained in:
parent
85a425b582
commit
46054cf00b
3 changed files with 11 additions and 8 deletions
|
|
@ -130,7 +130,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|||
}
|
||||
|
||||
// Fix URL when using SSH
|
||||
if (settings.sshKey && initialRemoteUrl != sshUrl) {
|
||||
if (settings.sshKey && initialRemoteUrl !== sshUrl) {
|
||||
await git.setRemoteUrl(sshUrl)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue