Use in-memory index to rebuild index in prune

This commit is contained in:
Alexander Weiss
2020-10-10 18:54:13 +02:00
committed by Alexander Neumann
parent 38cc4393f6
commit fd33030556
4 changed files with 38 additions and 14 deletions

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)
}