Compare commits

..

1 commit

Author SHA1 Message Date
51024307b5 index.js / getFetchUrl(): Include deployment path

getFetchUrl() returns an URL of the form

<scheme>://<host>[:port]/<owner>/<repo-name>

This is incompatible with deployments under

<scheme>://<host>[:port]/<base-path>/<owner>/<repo-name>

and it breaks authentication for me. Fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-04-10 10:50:53 +02:00

3
dist/index.js vendored
View file

@ -2730,8 +2730,7 @@ function getFetchUrl(settings) {
const user = settings.sshUser.length > 0 ? settings.sshUser : 'git';
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
}
// "origin" is SCHEME://HOSTNAME[:PORT]
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
return `${serviceUrl}/${encodedOwner}/${encodedName}`;
}
function getServerUrl(url) {
let resolvedUrl = process.env['GITHUB_SERVER_URL'] || 'https://github.com';