diff --git a/internal/cache/cache_load.go b/internal/cache/cache_load.go index e25cc63..496ba8b 100644 --- a/internal/cache/cache_load.go +++ b/internal/cache/cache_load.go @@ -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))