Skip to content

Commit

Permalink
Reset flag in Close.
Browse files Browse the repository at this point in the history
  • Loading branch information
KN4CK3R committed Feb 21, 2024
1 parent b6e29c0 commit 4e4505f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/git/repo_base_nogogit.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ func (repo *Repository) Close() (err error) {
repo.batchReader = nil
repo.batchWriter = nil
repo.batchCancel = nil
repo.batchInUse = false
}
if repo.checkCancel != nil {
repo.checkCancel()
repo.checkCancel = nil
repo.checkReader = nil
repo.checkWriter = nil
repo.checkInUse = false
}
repo.LastCommitCache = nil
repo.tagCache = nil
Expand Down

0 comments on commit 4e4505f

Please sign in to comment.