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/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
5 years ago
..
tests/repos [backport/v1.9] Fix reading git notes from nested trees (#8189) 6 years ago
README.md move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
blame.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
blame_test.go Monitor all git commands; move blame to git package and replace git as a variable (#6864) 6 years ago
blob.go Fixes #7292 - API File Contents bug (#7301) 6 years ago
blob_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
cache.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
command.go Monitor all git commands; move blame to git package and replace git as a variable (#6864) 6 years ago
command_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
commit.go Be more strict with git arguments (#7715) (#7762) 6 years ago
commit_archive.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
commit_info.go Fix empty commits now showing in repo overview (#7521) (#7563) 6 years ago
commit_info_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
commit_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
error.go Improve listing performance by using go-git (#6478) 6 years ago
git.go add commitgraph support global default true when git version >= 2.18 (#7313) 6 years ago
git_test.go Only check and config git on web subcommand but not others (#7236) 6 years ago
hook.go fix 500 when edit hook (#8782) (#8790) 5 years ago
notes.go [backport/v1.9] Fix reading git notes from nested trees (#8189) 6 years ago
notes_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
parse.go Improve listing performance by using go-git (#6478) 6 years ago
parse_test.go Improve listing performance by using go-git (#6478) 6 years ago
ref.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
repo.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_blame.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
repo_blob.go Improve listing performance by using go-git (#6478) 6 years ago
repo_blob_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_branch.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_branch_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_commit.go Be more strict with git arguments (#7715) (#7762) 6 years ago
repo_commit_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_commitgraph.go Use commit graph files for listing pages (#7314) 6 years ago
repo_compare.go Do not fetch all refs (#7837) 6 years ago
repo_compare_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_hook.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
repo_index.go Be more strict with git arguments (#7715) (#7762) 6 years ago
repo_object.go Fixes #7292 - API File Contents bug (#7301) 6 years ago
repo_ref.go Fixes #2738 - Adds the /git/tags API endpoint (#7138) 6 years ago
repo_ref_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_stats.go Git statistics in Activity tab (#4724) 6 years ago
repo_stats_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_tag.go Backport: Strict name matching for Repository.GetTagID() (#8082) 6 years ago
repo_tag_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_tree.go Restore functionality for early gits (#7775) (#8476) 5 years ago
sha1.go Improve listing performance by using go-git (#6478) 6 years ago
signature.go Improve listing performance by using go-git (#6478) 6 years ago
submodule.go Refactor submodule URL parsing (#7100) 6 years ago
submodule_test.go Refactor submodule URL parsing (#7100) 6 years ago
tag.go Fixes #2738 - Adds the /git/tags API endpoint (#7138) 6 years ago
tree.go Fix #6813: Allow git.GetTree to take both commit and tree names (#6816) 6 years ago
tree_blob.go Do not attempt to return blob on submodule (#6996) 6 years ago
tree_entry.go Backport: skip non-regular files (e.g. submodules) on repo indexing (#7717) 6 years ago
tree_entry_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
utils.go Add golangci (#6418) 6 years ago

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.