gitea/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
README.md
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
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
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 Do not fetch all refs (#7797) 2019-08-13 11:30:44 +03:00
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
sha1.go
signature.go
submodule.go
submodule_test.go
tag.go
tree.go Removed unnecessary conversions (#7557) 2019-07-23 19:50:39 +01:00
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

README.md

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.