Fix remote filtering
This commit is contained in:
parent
d6b93a5db7
commit
f25b3e0123
2
internal/cache/cache_load.go
vendored
2
internal/cache/cache_load.go
vendored
@ -22,7 +22,7 @@ func (c *Cache) LoadRemotes(gitRemotes ...string) {
|
||||
c.log.Error("Skipping load of remote, not alive", c.log.Args(
|
||||
"remote", r.String()))
|
||||
continue
|
||||
} else if !slices.Contains(gitRemotes, r.GetInfo().Host) {
|
||||
} else if len(gitRemotes) > 0 && !slices.Contains(gitRemotes, r.GetInfo().Host) {
|
||||
c.log.Debug("Skipping remote not in --remote list", c.log.Args(
|
||||
"remote", r.String(),
|
||||
"remotes", gitRemotes))
|
||||
|
Loading…
Reference in New Issue
Block a user