bugfix: close pack files after reading the header
This commit is contained in:
parent
4bc81c2bd2
commit
00e05ae3c9
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ func (cmd CmdRebuildIndex) RebuildIndex() error {
|
|||
combinedIndex.Store(blob.Type, blob.ID, packID, blob.Offset, blob.Length)
|
||||
}
|
||||
|
||||
err = rd.Close()
|
||||
debug.Log("RebuildIndex.RebuildIndex", "error closing reader for pack %v: %v", packID.Str(), err)
|
||||
|
||||
if repository.IndexFull(combinedIndex) {
|
||||
combinedIndex, err = cmd.storeIndex(combinedIndex)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue