From 4ae824f7e50149c277538c62622b2804455591d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20K=C4=99ska?= <372403+keskad@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:49:05 +0100 Subject: [PATCH] fix: Trim out `.git` suffix to remove permission denied in Gitlab --- pkgs/contract/pipeline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/contract/pipeline.go b/pkgs/contract/pipeline.go index ab2ce12..470bf84 100644 --- a/pkgs/contract/pipeline.go +++ b/pkgs/contract/pipeline.go @@ -239,7 +239,7 @@ type JobContext struct { func NewSCMContext(repoHttpsUrl string) (JobContext, error) { scm := JobContext{} - scm.RepoHttpsUrl = repoHttpsUrl + scm.RepoHttpsUrl = strings.TrimSuffix(repoHttpsUrl, ".git") scm.OrganizationName = "" scm.RepositoryName = ""