Use in-memory index to rebuild index in prune

This commit is contained in:
Alexander Weiss authored and Alexander Neumann committed 2020-11-06 20:23:30 +01:00
1 parent 38cc4393f6
commit fd33030556
4 files changed
+38 -14

No files matched your search

+4 -1
View File
@@ -322,7 +322,10 @@ func (r *Repository) Flush(ctx context.Context) error {
return err
}
// Save index after flushing
// Save index after flushing only if noAutoIndexUpdate is not set
if r.noAutoIndexUpdate {
return nil
}
return r.SaveIndex(ctx)
}