From 1d92969ea6bc482e40db7ccf44d639bd7e5df48c Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Mon, 10 Jul 2023 14:55:35 +0200 Subject: [PATCH] added subdir in url --- src/git-source-provider.ts | 2 +- src/url-helper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {