mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-22 23:01:38 +02:00
refactor: remove Ctx field from git.Repository (#38500)
This commit is contained in:
@@ -40,6 +40,10 @@ func (b *catFileBatchCommand) getBatch() *catFileBatchCommunicator {
|
||||
return b.batch
|
||||
}
|
||||
|
||||
func (b *catFileBatchCommand) Context() context.Context {
|
||||
return b.ctx
|
||||
}
|
||||
|
||||
func (b *catFileBatchCommand) QueryContent(obj string) (*CatFileObject, BufferedReader, error) {
|
||||
if strings.Contains(obj, "\n") {
|
||||
setting.PanicInDevOrTesting("invalid object name with newline: %q", obj)
|
||||
|
||||
Reference in New Issue
Block a user