mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
fix: custom service usage
This commit is contained in:
@ -80,9 +80,7 @@ func (self *HostingServiceMgr) getServiceDomain(repoURL string) (*ServiceDomain,
|
|||||||
candidateServiceDomains := self.getCandidateServiceDomains()
|
candidateServiceDomains := self.getCandidateServiceDomains()
|
||||||
|
|
||||||
for _, serviceDomain := range candidateServiceDomains {
|
for _, serviceDomain := range candidateServiceDomains {
|
||||||
// I feel like it makes more sense to see if the repo url contains the service domain's git domain,
|
if strings.Contains(repoURL, serviceDomain.gitDomain) {
|
||||||
// but I don't want to break anything by changing that right now.
|
|
||||||
if strings.Contains(repoURL, serviceDomain.serviceDefinition.provider) {
|
|
||||||
return &serviceDomain, nil
|
return &serviceDomain, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user