Skip to content

Commit 55127f7

Browse files
securisecmsukkari
andauthored
Align gitea clone_url with gitea host url. Addresses #270 (#303)
Co-authored-by: Michael Sukkarieh <[email protected]>
1 parent e4e36bd commit 55127f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/backend/src/repoCompileUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ export const compileGiteaConfig = async (
183183
.replace(/^https?:\/\//, '');
184184

185185
const repos = giteaRepos.map((repo) => {
186+
const configUrl = new URL(hostUrl);
186187
const cloneUrl = new URL(repo.clone_url!);
188+
cloneUrl.host = configUrl.host
187189
const repoDisplayName = repo.full_name!;
188190
const repoName = path.join(repoNameRoot, repoDisplayName);
189191

0 commit comments

Comments
 (0)