diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts index 4ae332a..545a7a3 100644 --- a/src/git-source-provider.ts +++ b/src/git-source-provider.ts @@ -17,7 +17,7 @@ export async function getSource(settings: IGitSourceSettings): Promise { core.info( `Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}` ) - const repositoryUrl = urlHelper.getFetchUrl(settings) + '/gitea' + const repositoryUrl = urlHelper.getFetchUrl(settings) // Remove conflicting file path if (fsHelper.fileExistsSync(settings.repositoryPath)) { diff --git a/src/url-helper.ts b/src/url-helper.ts index 05f1cbd..9e74c7b 100644 --- a/src/url-helper.ts +++ b/src/url-helper.ts @@ -16,7 +16,7 @@ export function getFetchUrl(settings: IGitSourceSettings): string { } // "origin" is SCHEME://HOSTNAME[:PORT] - return `${serviceUrl.origin}/${encodedOwner}/${encodedName}` + return `${serviceUrl.origin}/gitea/${encodedOwner}/${encodedName}` } export function getServerUrl(): URL {