diff options
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 } } |