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/models
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
..
fixtures Update heatmap fixtures to restore tests (#8615) (#8617) 5 years ago
migrations Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
access.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
access_test.go Add golangci (#6418) 5 years ago
action.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
action_list.go refactor: reduce sql query in retrieveFeeds (#3547) 6 years ago
action_test.go feat: highlight issue references with : (#8101) (#8404) 5 years ago
admin.go Only warn on errors in deleting LFS orphaned files during repo deletion (#7213) 5 years ago
admin_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
attachment.go Move sdk structs to modules/structs (#6905) 5 years ago
attachment_test.go fix upload attachments (#6481) 5 years ago
branches.go Allow users with explicit read access to give approvals (#8398) 5 years ago
branches_test.go Add deleted_branch table fixture (#2832) 7 years ago
commit_status.go api: fix multiple bugs with statuses endpoints (#7785) (#7807) 5 years ago
commit_status_test.go api: fix multiple bugs with statuses endpoints (#7785) (#7807) 5 years ago
consistency.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
convert.go Add command to convert mysql database from utf8 to utf8mb4 (#7144) 5 years ago
error.go Add error for fork already existing (#7185) 5 years ago
error_oauth2.go gofmt (#1662) 7 years ago
external_login_user.go Add primary key and index to external login user table (#1656) 7 years ago
git_diff.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
git_diff_test.go Make diff line-marker non-selectable (#7279) 5 years ago
gpg_key.go Fix wrong GPG expire date (#6643) 5 years ago
gpg_key_test.go Fix wrong GPG expire date (#6643) 5 years ago
graph.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
graph_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
helper.go Add reactions to issues/PR and comments (#2856) 7 years ago
helper_directory.go Remove local clones & make hooks run on merge/edit/upload (#6672) 5 years ago
helper_environment.go Fix bug create/edit wiki pages when code master branch protected (#7580) (#7623) 5 years ago
issue.go make call createMilestoneComment on newIssue func (#8678) (#8682) 5 years ago
issue_assignees.go fix duplicated webhook when creating issue with assignees (#7681) (#7684) 5 years ago
issue_assignees_test.go refactor: append, build variable and type switch (#4940) 5 years ago
issue_comment.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
issue_comment_list.go Add golangci (#6418) 5 years ago
issue_comment_test.go Pull request review/approval and comment on code (#3748) 6 years ago
issue_dependency.go fix sqlite lock (#5184) 6 years ago
issue_dependency_test.go Fix an error while adding a dependency via UI. (#5862) 5 years ago
issue_label.go Add missing description of label on API (#7159) 5 years ago
issue_label_test.go Move sdk structs to modules/structs (#6905) 5 years ago
issue_list.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
issue_list_test.go Shows total tracked time in issue and milestone list (#3341) 6 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 5 years ago
issue_mail.go Backport: Ignore mentions for users with no access (#8395) (#8484) 5 years ago
issue_milestone.go [Backport] [Fix] milestone close timestamp (#8728) (#8731) 5 years ago
issue_milestone_test.go Fix milestone num_issues (#8221) (#8400) 5 years ago
issue_reaction.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
issue_reaction_test.go Ensure valid git author names passed in signatures (#5774) 5 years ago
issue_stopwatch.go Improve performance of dashboard (#4977) 6 years ago
issue_stopwatch_test.go Refactor struct's time to remove unnecessary memory usage (#3142) 7 years ago
issue_test.go Backport: Ignore mentions for users with no access (#8395) (#8484) 5 years ago
issue_tracked_time.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
issue_tracked_time_test.go Feature: Timetracking (#2211) 7 years ago
issue_user.go Fix sqlite deadlock when assigning to a PR (#5640) 5 years ago
issue_user_test.go Multiple assignees (#3705) 6 years ago
issue_watch.go Update xorm to latest version and fix correct `user` table referencing in sql (#4473) 6 years ago
issue_watch_test.go Hide unactive on explore users and some refactors (#2741) 7 years ago
lfs.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 5 years ago
lfs_lock.go lfs/lock: round locked_at timestamp to second (#7872) (#7875) 5 years ago
log.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
login_source.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
mail.go Add golangci (#6418) 5 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
migrate.go Fix milestone completness calculation when migrating (#7725) (#7732) 5 years ago
models.go Detect migrating batch size (#7353) 5 years ago
models_sqlite.go fix dump table name error and add some test for dump database (#6394) 5 years ago
models_test.go fix dump table name error and add some test for dump database (#6394) 5 years ago
notification.go Add golangci (#6418) 5 years ago
notification_test.go Add 'mark all read' option to notifications (#3097) 7 years ago
oauth2.go Add golangci (#6418) 5 years ago
oauth2_application.go Add golangci (#6418) 5 years ago
oauth2_application_test.go OAuth2 Grant UI (#6625) 5 years ago
org.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
org_team.go Backport: Ignore mentions for users with no access (#8395) (#8484) 5 years ago
org_team_test.go Fix approvals counting (#7757) (#7777) 5 years ago
org_test.go Add golangci (#6418) 5 years ago
pull.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
pull_test.go only return head: null if source branch was deleted (#6705) (#7376) 5 years ago
release.go Fix assets on release webhook (#8283) 5 years ago
release_test.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_activity.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_collaboration.go Add golangci (#6418) 5 years ago
repo_collaboration_test.go Unit tests for models/repo_collaboration (#1032) 7 years ago
repo_indexer.go Fixes indexed repos keeping outdated indexes when files grow too large (#7731) 5 years ago
repo_issue.go Add EnableTimetracking option to app settings (#3719) 6 years ago
repo_list.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
repo_list_test.go SearchRepositoryByName improvements and unification (#6897) 5 years ago
repo_mirror.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
repo_permission.go Allow collaborators to view repo owned private org (#6965) 5 years ago
repo_permission_test.go fix bug when update owner team then visit team's repo return 404 (#6119) 5 years ago
repo_redirect.go Add golangci (#6418) 5 years ago
repo_redirect_test.go Unit tests for repo redirects (#961) 7 years ago
repo_test.go Add error for fork already existing (#7185) 5 years ago
repo_unit.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
repo_watch.go Fix sqlite deadlock when assigning to a PR (#5640) 5 years ago
repo_watch_test.go Hide unactive on explore users and some refactors (#2741) 7 years ago
review.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
review_test.go Show review summary in pull requests (#5132) 6 years ago
ssh_key.go Fixes #8369: Create .ssh dir as necessary (#8486) (#8489) 5 years ago
ssh_key_test.go Use go method to calculate ssh key fingerprint (#7128) 5 years ago
star.go Ensure that sessions are passed into queries that could use the database to prevent deadlocks (#5718) 5 years ago
star_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
test_fixtures.go Increase the retry limit to 20 times and the interval to 200ms (#5134) 6 years ago
token.go Hash App token (#6724) 5 years ago
token_test.go Add golangci (#6418) 5 years ago
topic.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
topic_test.go feat(repo): support search repository by topic name (#4505) 6 years ago
twofactor.go Fix double-generation of scratch token (#6832) (#6833) 5 years ago
u2f.go fix u2f registrationlist ToRegistrations() method (#6980) 5 years ago
u2f_test.go Override xorm type mapping for U2F counter (#6232) 5 years ago
unit.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 5 years ago
unit_tests.go Fix error log when loading issues caused by a xorm bug (#7271) 5 years ago
update.go Add Close() method to gogitRepository (#8901) (#8958) 5 years ago
update_test.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
upload.go Refactor editor upload, update and delete to use git plumbing and add LFS support (#5702) 5 years ago
user.go Revert "[Backport] Fix issues/pr list broken when there are man… (#8425) 5 years ago
user_follow.go Refactor session close as xorm already does everything needed internally (#2020) 7 years ago
user_follow_test.go Move user_follow to separate file (#1210) 7 years ago
user_heatmap.go Only count users own actions for heatmap contributions (#5647) 5 years ago
user_heatmap_test.go Update heatmap fixtures to restore tests (#8615) (#8617) 5 years ago
user_mail.go Add golangci (#6418) 5 years ago
user_mail_test.go Fix tests code to prevent some runtime errors (#2381) 7 years ago
user_openid.go Fix SQL quoting (#5117) 6 years ago
user_openid_test.go Add golangci (#6418) 5 years ago
user_test.go Revert "[Backport] Fix issues/pr list broken when there are man… (#8425) 5 years ago
webhook.go Fix duplicate call of webhook (#7821) (#7824) 5 years ago
webhook_dingtalk.go Move sdk structs to modules/structs (#6905) 5 years ago
webhook_discord.go Add golangci (#6418) 5 years ago
webhook_msteams.go MS Teams webhook misses commit messages (#8225) 5 years ago
webhook_slack.go Fix Slack webhook fork message (#7774) (#7783) 5 years ago
webhook_telegram.go Move sdk structs to modules/structs (#6905) 5 years ago
webhook_test.go Move sdk structs to modules/structs (#6905) 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