You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/repofiles
zeripath fb5af37b3e
Add Close() method to gogitRepository (#8901) (#8958)
Backport #8901 - Adjusted slightly for 1.9

In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.

This PR adds this Close function and adds the Close functions as necessary.

In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.

Fixes #7947
5 years ago
..
blob.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
blob_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
commit.go Number of commits ahead/behind in branch overview (#6695) 6 years ago
commit_status.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
content.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
content_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
delete.go Fix duplicate call of webhook (#7821) (#7824) 6 years ago
diff.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago
diff_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
file.go Fixes #7292 - API File Contents bug (#7301) 6 years ago
file_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repofiles.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago
repofiles_test.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago
temp_repo.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
tree.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
tree_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
update.go Restore functionality for early gits (#7775) (#8476) 5 years ago
upload.go Restore functionality for early gits (#7775) (#8476) 5 years ago
verification.go Add golangci (#6418) 6 years ago