gitea/modules/git
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
2019-11-13 18:51:33 +00:00
..
tests/repos [backport/v1.9] Fix reading git notes from nested trees (#8189) 2019-09-15 17:59:08 -04:00
blame_test.go Monitor all git commands; move blame to git package and replace git as a variable (#6864) 2019-06-26 14:15:26 -04:00
blame.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
blob_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
blob.go Fixes #7292 - API File Contents bug (#7301) 2019-06-29 16:51:10 -04:00
cache.go
command_test.go
command.go Monitor all git commands; move blame to git package and replace git as a variable (#6864) 2019-06-26 14:15:26 -04:00
commit_archive.go
commit_info_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
commit_info.go Fix empty commits now showing in repo overview (#7521) (#7563) 2019-07-22 19:23:49 +03:00
commit_test.go
commit.go Be more strict with git arguments (#7715) (#7762) 2019-08-05 22:05:48 -04:00
error.go
git_test.go Only check and config git on web subcommand but not others (#7236) 2019-06-19 19:53:37 +03:00
git.go add commitgraph support global default true when git version >= 2.18 (#7313) 2019-06-29 12:46:25 +01:00
hook.go fix 500 when edit hook (#8782) (#8790) 2019-11-02 14:31:29 -04:00
notes_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
notes.go [backport/v1.9] Fix reading git notes from nested trees (#8189) 2019-09-15 17:59:08 -04:00
parse_test.go
parse.go
README.md
ref.go
repo_blame.go
repo_blob_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_blob.go
repo_branch_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_branch.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_commit_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_commit.go Be more strict with git arguments (#7715) (#7762) 2019-08-05 22:05:48 -04:00
repo_commitgraph.go Use commit graph files for listing pages (#7314) 2019-07-02 10:15:14 +08:00
repo_compare_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_compare.go Do not fetch all refs (#7837) 2019-08-13 19:03:01 +08:00
repo_hook.go
repo_index.go Be more strict with git arguments (#7715) (#7762) 2019-08-05 22:05:48 -04:00
repo_object.go Fixes #7292 - API File Contents bug (#7301) 2019-06-29 16:51:10 -04:00
repo_ref_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_ref.go
repo_stats_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_stats.go
repo_tag_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_tag.go Backport: Strict name matching for Repository.GetTagID() (#8082) 2019-09-04 16:37:09 +02:00
repo_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
repo_tree.go Restore functionality for early gits (#7775) (#8476) 2019-10-13 12:40:13 +08:00
repo.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
sha1.go
signature.go
submodule_test.go
submodule.go
tag.go
tree_blob.go
tree_entry_test.go Add Close() method to gogitRepository (#8901) (#8958) 2019-11-13 18:51:33 +00:00
tree_entry.go Backport: skip non-regular files (e.g. submodules) on repo indexing (#7717) 2019-08-02 22:40:15 +08:00
tree.go
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.