chore: still keep ctx in git.Repository struct for cat-file batch command - #38684
Merged
Conversation
wxiaoguang
force-pushed
the
fix-git-repo-ctx
branch
from
July 28, 2026 12:14
634cb97 to
16ee9f0
Compare
silverwind
approved these changes
Jul 28, 2026
bircni
approved these changes
Jul 28, 2026
bircni
enabled auto-merge (squash)
July 28, 2026 16:41
lunny
added a commit
to lunny/gitea
that referenced
this pull request
Jul 29, 2026
…n test OpenRepositoryLocal gained a cat-file batch context parameter in go-gitea#38684, which broke the build of this package's tests after rebasing onto main. Assisted-by: Codet
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Jul 30, 2026
* 'main' of https://github.com/go-gitea/gitea: chore: tweak AGENTS.md (go-gitea#38702) [skip ci] Updated translations via Crowdin fix: avoid markup render panic (go-gitea#38698) fix(ui): too many participants shown in commit avatar stacks (go-gitea#38689) [skip ci] Updated translations via Crowdin chore: still keep ctx in git.Repository struct for cat-file batch command (go-gitea#38684) feat: Add support for dynamic matrix evaluation in Gitea Actions workflows (go-gitea#36564) fix: Alpine registry APKINDEX.tar.gz returns 405 for HEAD requests [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] (go-gitea#38686) fix: repo home page 500 due to the timeout of "get last commit info" (go-gitea#38678) [skip ci] Updated translations via Crowdin docs: Update Changelog for release v1.27.1 (go-gitea#38670) refactor(git): clarify GetBranch behavior to make it only gets an existing branch (go-gitea#38662) chore(deps): update dependencies (go-gitea#38660) feat: Add max-parallel Support for Gitea Actions (go-gitea#36357) fix: skip OIDC end-session after password login for OAuth2 users (go-gitea#38439) ci: set AWS_REGION for Cloudflare R2 upload steps (go-gitea#38658) fix: make Actions log parser support multiple line message encoding (go-gitea#38659) test(pubsub): stop racing the Redis SUBSCRIBE ack (go-gitea#38661) chore(ci): fix renovate custom manager regex (go-gitea#38656) feat: Replace SSE with WebSocket for UI notifications (go-gitea#36965)
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Jul 30, 2026
* main: chore: tweak AGENTS.md (go-gitea#38702) [skip ci] Updated translations via Crowdin fix: avoid markup render panic (go-gitea#38698) fix(ui): too many participants shown in commit avatar stacks (go-gitea#38689) [skip ci] Updated translations via Crowdin chore: still keep ctx in git.Repository struct for cat-file batch command (go-gitea#38684) feat: Add support for dynamic matrix evaluation in Gitea Actions workflows (go-gitea#36564) fix: Alpine registry APKINDEX.tar.gz returns 405 for HEAD requests [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] (go-gitea#38686) fix: repo home page 500 due to the timeout of "get last commit info" (go-gitea#38678) [skip ci] Updated translations via Crowdin docs: Update Changelog for release v1.27.1 (go-gitea#38670) refactor(git): clarify GetBranch behavior to make it only gets an existing branch (go-gitea#38662) chore(deps): update dependencies (go-gitea#38660) feat: Add max-parallel Support for Gitea Actions (go-gitea#36357) fix: skip OIDC end-session after password login for OAuth2 users (go-gitea#38439) ci: set AWS_REGION for Cloudflare R2 upload steps (go-gitea#38658) fix: make Actions log parser support multiple line message encoding (go-gitea#38659) test(pubsub): stop racing the Redis SUBSCRIBE ack (go-gitea#38661) chore(ci): fix renovate custom manager regex (go-gitea#38656) feat: Replace SSE with WebSocket for UI notifications (go-gitea#36965)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unfortunately, we can't completely remove the ctx from git.Repository, because the CatFileBatch still heavily depends on a parent context.
If we remove the Repository ctx, the CatFileBatch will become a mess and create a lot of unnecessary git processes.
http://localhost:3000/-/admin/monitor/perftrace