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/routers/repo
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
..
activity.go Git statistics in Activity tab (#4724) 6 years ago
attachment.go upload support text/plain; charset=utf8 (#7899) 6 years ago
blame.go Monitor all git commands; move blame to git package and replace git as a variable (#6864) 6 years ago
branch.go improve branches list performance and fix protected branch icon when no-login (#7695) (#7704) 6 years ago
commit.go Add golangci (#6418) 6 years ago
compare.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
download.go Add missed close in ServeBlobLFS (#8527) (#8543) 5 years ago
editor.go Fix editor commit to new branch if PR disabled (#8375) (#8401) 5 years ago
editor_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
http.go Handle ErrUserProhibitLogin in http git (#7586, #7591) (#7590) 6 years ago
issue.go Add reviewrs as participants (#8124) 5 years ago
issue_dependency.go Added dependencies for issues (#2196) (#2531) 7 years ago
issue_label.go Add golangci (#6418) 6 years ago
issue_label_test.go fix go vet error (#3740) 7 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 6 years ago
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 6 years ago
issue_timetrack.go Handle refactor (#3339) 7 years ago
issue_watch.go Trace Logging on Permission Denied & ColorFormat (#6618) 6 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 6 years ago
milestone.go fix non existent milestone with 500 error (#7867) (#7873) 6 years ago
pull.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
pull_review.go Add comment replies (#5104) 6 years ago
release.go Unifies pagination template usage (#6531) (#6533) 6 years ago
release_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo.go Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 6 years ago
search.go Unifies pagination template usage (#6531) (#6533) 6 years ago
setting.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
setting_protected_branch.go Allow users with explicit read access to give approvals (#8398) 5 years ago
settings_test.go An inactive user shouldn't be able to be added as a collaborator (#4535) 7 years ago
topic.go Better logging (#6038) (#6095) 6 years ago
view.go Add golangci (#6418) 6 years ago
webhook.go Change general form binding to gogs form (#8334) (#8402) 5 years ago
wiki.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
wiki_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago