Align gitea clone_url with gitea host url. Addresses #270 (#303)

Co-authored-by: Michael Sukkarieh <michael.sukkarieh@mail.mcgill.ca>
This commit is contained in:
securisec 2025-05-12 15:38:27 -04:00 committed by GitHub
parent e4e36bd745
commit 55127f7dd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -183,7 +183,9 @@ export const compileGiteaConfig = async (
.replace(/^https?:\/\//, '');
const repos = giteaRepos.map((repo) => {
const configUrl = new URL(hostUrl);
const cloneUrl = new URL(repo.clone_url!);
cloneUrl.host = configUrl.host
const repoDisplayName = repo.full_name!;
const repoName = path.join(repoNameRoot, repoDisplayName);