Skip to content

Commit

Permalink
fix: Trim out .git suffix to remove permission denied in Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
keskad committed Nov 3, 2023
1 parent 15c658c commit 4ae824f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/contract/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""

Expand Down

0 comments on commit 4ae824f

Please sign in to comment.