diff options
author | bin101 <bin101@users.noreply.github.com> | 2022-01-20 15:31:57 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-21 23:13:00 +1100 |
commit | ad23bd03a0ffc48fd0b738e580df276ac75ee1bb (patch) | |
tree | f7850d313b7462007526701179f7cc5038e89f81 /pkg | |
parent | 1f923bdc4ba96ad21846797aadfacf5ecb3890e1 (diff) |
fix: custom service usage
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/commands/hosting_service/hosting_service.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/commands/hosting_service/hosting_service.go b/pkg/commands/hosting_service/hosting_service.go index 1762902a4..3fd2a7bd6 100644 --- a/pkg/commands/hosting_service/hosting_service.go +++ b/pkg/commands/hosting_service/hosting_service.go @@ -80,9 +80,7 @@ func (self *HostingServiceMgr) getServiceDomain(repoURL string) (*ServiceDomain, candidateServiceDomains := self.getCandidateServiceDomains() for _, serviceDomain := range candidateServiceDomains { - // I feel like it makes more sense to see if the repo url contains the service domain's git domain, - // but I don't want to break anything by changing that right now. - if strings.Contains(repoURL, serviceDomain.serviceDefinition.provider) { + if strings.Contains(repoURL, serviceDomain.gitDomain) { return &serviceDomain, nil } } |