Merge pull request #405 from crazy-max/buildx-fixlocalstate-typo

buildx: fix typo in fixLocalState func
This commit is contained in:
CrazyMax 2024-07-05 16:33:54 +02:00 committed by GitHub
commit ce0d3d5cf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,10 +203,10 @@ export class Buildx {
url = url.replace('http:/', 'http://'); url = url.replace('http:/', 'http://');
} }
if (url.startsWith('ssh:/') && !url.startsWith('ssh://')) { if (url.startsWith('ssh:/') && !url.startsWith('ssh://')) {
url = url.replace('https:/', 'ssh://'); url = url.replace('ssh:/', 'ssh://');
} }
if (url.startsWith('git:/') && !url.startsWith('git://')) { if (url.startsWith('git:/') && !url.startsWith('git://')) {
url = url.replace('https:/', 'git://'); url = url.replace('git:/', 'git://');
} }
return [url, trimed, true]; return [url, trimed, true];
} }