Skip to content

Commit d7a93a4

Browse files
committed
fix(#206): Respect host setting in environment variable and fix gitlab clone issue.
1 parent b36e550 commit d7a93a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/backend/src/repoCompileUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export const compileGitlabConfig = async (
123123
const repos = gitlabRepos.map((project) => {
124124
const projectUrl = `${hostUrl}/${project.path_with_namespace}`;
125125
const cloneUrl = new URL(project.http_url_to_repo);
126+
cloneUrl.protocol = new URL(hostUrl).protocol;
126127
const isFork = project.forked_from_project !== undefined;
127128
const isPublic = project.visibility === 'public';
128129
const repoDisplayName = project.path_with_namespace;

0 commit comments

Comments
 (0)