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/web/repo
parnic a04fc567b4
Use request timeout for git service rpc (#20689) (#20693)
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
3 years ago
..
activity.go Propagate context and ensure git commands run in request context (#17868) 3 years ago
attachment.go Move some repository related code into sub package (#19711) 3 years ago
blame.go Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 3 years ago
branch.go fix permission check for delete tag (#19985) 3 years ago
cherry_pick.go Remove `RequireHighlightJS` field, update plantuml example. (#19615) 3 years ago
commit.go Move some code into models/git (#19879) 3 years ago
compare.go Allow render HTML with css/js external links (#19017) 3 years ago
download.go Move some code into models/git (#19879) 3 years ago
editor.go Move some code into models/git (#19879) 3 years ago
editor_test.go Make git.OpenRepository accept Context (#19260) 3 years ago
find.go Feature: Find files in repo (#15028) 3 years ago
http.go Use request timeout for git service rpc (#20689) (#20693) 3 years ago
http_test.go Fix http path bug (#16117) 4 years ago
issue.go Check if project has the same repository id with issue when assign project to issue (#20133) (#20188) 3 years ago
issue_content_history.go Move issues related files into models/issues (#19931) 3 years ago
issue_dependency.go Move issues related files into models/issues (#19931) 3 years ago
issue_label.go Move issues related files into models/issues (#19931) 3 years ago
issue_label_test.go Move issues related files into models/issues (#19931) 3 years ago
issue_lock.go Move issues related files into models/issues (#19931) 3 years ago
issue_stopwatch.go Stop spurious APIFormat stopwatches logs (#20008) 3 years ago
issue_test.go Move issues related files into models/issues (#19931) 3 years ago
issue_timetrack.go Move issues related files into models/issues (#19931) 3 years ago
issue_watch.go Move issues related files into models/issues (#19931) 3 years ago
lfs.go Move some code into models/git (#19879) 3 years ago
main_test.go Use a struct as test options (#19393) 3 years ago
middlewares.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
migrate.go Unify repo settings & show better error (#19828) 3 years ago
milestone.go Move milestone to models/issues/ (#19278) 3 years ago
packages.go Show hint to link package to repo when viewing empty repo package list (#20504) (#20507) 3 years ago
patch.go Remove `RequireHighlightJS` field, update plantuml example. (#19615) 3 years ago
projects.go Check if project has the same repository id with issue when assign project to issue (#20133) (#20188) 3 years ago
projects_test.go Decouple unit test code from business code (#17623) 3 years ago
pull.go Add default commit messages to PR for squash merge (#20618) (#20645) 3 years ago
pull_review.go Dismiss prior pull reviews if done via web in review dismiss (#20197) (#20407) 3 years ago
release.go Release page show all tags in compare dropdown (#20070) (#20072) 3 years ago
release_test.go Decouple unit test, remove intermediate `unittestbridge` package (#17662) 3 years ago
render.go Allow render HTML with css/js external links (#19017) 3 years ago
repo.go Move some repository related code into sub package (#19711) 3 years ago
search.go Remove `RequireHighlightJS` field, update plantuml example. (#19615) 3 years ago
setting.go fix enabling repo packages when projects are off (#20486) (#20488) 3 years ago
setting_protected_branch.go Move some code into models/git (#19879) 3 years ago
settings_test.go Move access and repo permission to models/perm/access (#19350) 3 years ago
tag.go Move some code into models/git (#19879) 3 years ago
topic.go Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
treelist.go Feature: Find files in repo (#15028) 3 years ago
view.go Fix possible panic when repository is empty (#20509) (#20526) 3 years ago
webhook.go Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
wiki.go Move some code into models/git (#19879) 3 years ago
wiki_test.go Make git.OpenRepository accept Context (#19260) 3 years ago