Gitea remote support

This commit is contained in:
2024-01-16 14:26:56 -05:00
parent bd354842c0
commit 94bbff6d07
8 changed files with 49 additions and 10 deletions

View File

@ -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.