forgejo/modules/git
zeripath 3497efac4a
Add Close() method to gogitRepository (#8901) (#8956)
Backport #8901 

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
2019-11-13 13:54:04 +00:00
..
tests/repos
blame.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
blame_test.go
blob.go
blob_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
cache.go
command.go
command_test.go
commit.go
commit_archive.go
commit_info.go
commit_info_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
commit_test.go
error.go
git.go On windows set core.longpaths true (#8776) (#8786) 2019-11-02 12:25:13 +01:00
git_test.go
hook.go fix 500 when edit hook (#8782) (#8789) 2019-11-02 18:41:06 +02:00
notes.go
notes_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
parse.go
parse_test.go
README.md
ref.go
repo.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_blame.go
repo_blob.go
repo_blob_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_branch.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_branch_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_commit.go
repo_commit_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_commitgraph.go
repo_compare.go
repo_compare_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_hook.go
repo_index.go
repo_object.go
repo_ref.go
repo_ref_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_stats.go
repo_stats_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_tag.go
repo_tag_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
repo_tree.go Restore functionality for early gits (#7775) 2019-10-12 08:13:27 +08:00
sha1.go
signature.go
submodule.go
submodule_test.go
tag.go
tree.go
tree_blob.go
tree_entry.go
tree_entry_test.go Add Close() method to gogitRepository (#8901) (#8956) 2019-11-13 13:54:04 +00:00
utils.go

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.