forgejo/modules/git
zeripath 722a7c902d
Add Close() method to gogitRepository (#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 07:01:19 +00:00
..
pipeline Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
tests/repos Fix reading git notes from nested trees (#8026) 2019-09-12 09:14:41 +08:00
blame.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
blame_test.go
blob.go
blob_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
cache.go
command.go Migrate temp_repo.go to use git.NewCommand (#8918) 2019-11-11 11:46:28 +00:00
command_test.go
commit.go Fix count for commit graph last page (#8843) 2019-11-07 20:09:51 +02:00
commit_archive.go
commit_info.go Ensure default gpg settings not nil and found commits have reference to repo (#8604) 2019-10-20 23:26:36 +01:00
commit_info_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
commit_test.go
error.go
git.go On windows set core.longpaths true (#8776) 2019-11-02 13:40:49 +08:00
git_test.go
hook.go fix 500 when edit hook (#8782) 2019-11-02 21:38:11 +08:00
notes.go Fix reading git notes from nested trees (#8026) 2019-09-12 09:14:41 +08:00
notes_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
parse.go
parse_test.go
README.md
ref.go
repo.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_blame.go
repo_blob.go
repo_blob_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_branch.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_branch_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_commit.go Search Commits via Commit Hash (#7400) 2019-09-02 19:38:04 -04:00
repo_commit_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_commitgraph.go
repo_compare.go
repo_compare_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_gpg.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
repo_hook.go
repo_index.go
repo_object.go
repo_ref.go
repo_ref_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_stats.go
repo_stats_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_tag.go Strict name matching for Repository.GetTagID() (#8074) 2019-09-04 08:48:17 +03:00
repo_tag_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
repo_tree.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01: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) 2019-11-13 07:01:19 +00:00
utils.go Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00

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.