Ignore errors while parsing index

This commit is contained in:
Tillie Kottmann 2020-11-12 16:21:44 +01:00
parent 3558bd48bc
commit 92cd9f6bf5
1 changed files with 2 additions and 1 deletions

View File

@ -281,7 +281,8 @@ func FetchGit(baseUrl, baseDir string) error {
var idx index.Index
decoder := index.NewDecoder(f)
if err := decoder.Decode(&idx); err != nil {
return err
fmt.Fprintf(os.Stderr, "error: %s\n", err)
//return err
}
for _, entry := range idx.Entries {
objs[entry.Hash.String()] = true