added subdir in url

This commit is contained in:
Michael Schmidt
2023-07-10 14:55:35 +02:00
parent 8098344c6b
commit 1d92969ea6
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
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)) {

View File

@@ -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 {