From 51024307b502b98ea13a4fc6a85143faa5b07ed2 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 10 Apr 2026 10:06:26 +0200 Subject: [PATCH] index.js / getFetchUrl(): Include deployment path getFetchUrl() returns an URL of the form ://[:port]// This is incompatible with deployments under ://[:port]/// and it breaks authentication for me. Fix that. Signed-off-by: Jan Lindemann --- dist/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index fe3f317..9a648b6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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';