0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-08 03:09:25 +01:00
gitea/routers/web/repo
parnic 27789908d8
Use request timeout for git service rpc (#20689)
This enables git.Command's Run to optionally use the given context directly so its deadline will be respected. Otherwise, it falls back to the previous behavior of using the supplied timeout or a default timeout value of 360 seconds.

repo's serviceRPC() calls now use the context's deadline (which is unset/unlimited) instead of the default 6-minute timeout. This means that large repo clones will no longer arbitrarily time out on the upload-pack step, and pushes can take longer than 6 minutes on the receive-pack step.

Fixes #20680

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-08-06 16:13:11 +03:00
..
activity.go
attachment.go
blame.go
branch.go
cherry_pick.go
commit.go
compare.go Prepend commit message to template content (#20429) 2022-07-24 04:45:33 +01:00
download.go Slightly simplify LastCommitCache (#20444) 2022-07-25 16:39:42 +01:00
editor_test.go
editor.go
find.go
http_test.go
http.go Use request timeout for git service rpc (#20689) 2022-08-06 16:13:11 +03:00
issue_content_history.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go Show hint to link package to repo when viewing empty repo package list (#20504) 2022-07-27 19:58:21 +08:00
patch.go
projects_test.go
projects.go
pull_review.go
pull.go Add default commit messages to PR for squash merge (#20618) 2022-08-03 12:56:59 +08:00
release_test.go
release.go
render.go
repo.go
search.go
setting_protected_branch.go
setting.go Add new API endpoints for push mirrors management (#19841) 2022-07-30 18:45:59 +02:00
settings_test.go
tag.go
topic.go
treelist.go
view_test.go Support localized README (#20508) 2022-08-01 01:36:58 +03:00
view.go Support localized README (#20508) 2022-08-01 01:36:58 +03:00
webhook.go
wiki_test.go
wiki.go