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 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
5 years ago
..
tests/repos Fix reading git notes from nested trees (#8026) 6 years ago
README.md
blame.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
blame_test.go
blob.go
blob_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
cache.go
command.go
command_test.go
commit.go Bugfix for image compare and minor improvements to image compare (#8289) 5 years ago
commit_archive.go
commit_info.go
commit_info_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
commit_test.go
error.go
git.go On windows set core.longpaths true (#8776) (#8786) 5 years ago
git_test.go
hook.go fix 500 when edit hook (#8782) (#8789) 5 years ago
notes.go Fix reading git notes from nested trees (#8026) 6 years ago
notes_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
parse.go
parse_test.go
ref.go
repo.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_blame.go
repo_blob.go
repo_blob_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_branch.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_branch_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_commit.go Search Commits via Commit Hash (#7400) 6 years ago
repo_commit_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_commitgraph.go Use gitea forked macaron (#7933) 6 years ago
repo_compare.go Do not fetch all refs (#7797) 6 years ago
repo_compare_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_hook.go
repo_index.go
repo_object.go
repo_ref.go
repo_ref_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_stats.go
repo_stats_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_tag.go Strict name matching for Repository.GetTagID() (#8074) 6 years ago
repo_tag_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_test.go Add Close() method to gogitRepository (#8901) (#8956) 5 years ago
repo_tree.go Restore functionality for early gits (#7775) 5 years ago
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) 5 years ago
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.