Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: self-hosted GitLab URL

Andras Bacsai4da27a46a24f
diff --git a/src/lib/importers/gitlab.ts b/src/lib/importers/gitlab.ts
index 81ef54c107..0cf57d98a7 100644
--- a/src/lib/importers/gitlab.ts
+++ b/src/lib/importers/gitlab.ts
@@ -10,7 +10,7 @@ export default async function ({
buildId,
privateSshKey
}): Promise<any> {
- 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`);