Gitea remote support
This commit is contained in:
9
internal/cache/cache_load.go
vendored
9
internal/cache/cache_load.go
vendored
@ -17,7 +17,7 @@ func (c *Cache) LoadRemotes() {
|
||||
for _, r := range *c.remotes {
|
||||
if !remote.IsAlive(r) {
|
||||
c.log.Error("Skipping load of remote, not alive", c.log.Args(
|
||||
"remote", r.GetInfo(),
|
||||
"remote", r.String(),
|
||||
))
|
||||
continue
|
||||
}
|
||||
@ -31,7 +31,12 @@ func (c *Cache) LoadRemotes() {
|
||||
Ctx: r.GetInfo().Ctx,
|
||||
OwnerOnly: c.config.Cache.Load.OwnerOnly,
|
||||
}
|
||||
pi := remotes.StreamRemote(r, opts)
|
||||
|
||||
pi, err := remotes.StreamRemote(r, opts)
|
||||
if err != nil {
|
||||
c.log.Error("Skipping remote", c.log.Args("error", err))
|
||||
continue
|
||||
}
|
||||
|
||||
// Prepare progressbar
|
||||
pBar, _ := pterm.DefaultProgressbar.
|
||||
|
Reference in New Issue
Block a user