From 4da27a46a24f7130aeb4688310d78b25031c324d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 8 Apr 2022 00:16:10 +0200 Subject: [PATCH] fix: self-hosted GitLab URL --- src/lib/importers/gitlab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/importers/gitlab.ts b/src/lib/importers/gitlab.ts index 81ef54c10..0cf57d98a 100644 --- a/src/lib/importers/gitlab.ts +++ b/src/lib/importers/gitlab.ts @@ -10,7 +10,7 @@ export default async function ({ buildId, privateSshKey }): Promise { - const url = htmlUrl.replace('https://', '').replace('http://', ''); + const url = htmlUrl.replace('https://', '').replace('http://', '').replace(/\/$/, ''); await saveBuildLog({ line: 'GitLab importer started.', buildId, applicationId }); await asyncExecShell(`echo '${privateSshKey}' > ${repodir}/id.rsa`); await asyncExecShell(`chmod 600 ${repodir}/id.rsa`);