Commit Graph

6 Commits (82979588f4d8699097451ebb70c56a4bdd090c52)

Author SHA1 Message Date
Lunny Xiao 29f149bd9f
Move context from modules to services (#29440) 9 months ago
wxiaoguang 1ef87773b1
Refactor modules/git global variables (#29376) 9 months ago
Lunny Xiao 3b50dd95ce
Some refactor for git http (#28995) 10 months ago
Lunny Xiao 408a484224
Adjust object format interface (#28469) 11 months ago
Adam Majer cbf923e87b
Abstract hash function usage (#28138) 11 months ago
Lunny Xiao 0ba4ecc3bd
Fix http protocol auth (#27875) 1 year ago
JakobDev 76a85a4ce9
Final round of `db.DefaultContext` refactor (#27587) 1 year ago
JakobDev ebe803e514
Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
JakobDev c548dde205
More refactoring of `db.DefaultContext` (#27083) 1 year ago
Denys Konovalov 63ab92d797
Pre-register OAuth2 applications for git credential helpers (#26291) 1 year ago
6543 8995046110
Less naked returns (#25713) 1 year ago
Jack Hay 18de83b2a3
Redesign Scoped Access Tokens (#24767) 1 year ago
wxiaoguang 6b33152b7d
Decouple the different contexts from each other (#24786) 2 years ago
John Olheiser 5e36024105
Require repo scope for PATs for private repos and basic authentication (#24362) 2 years ago
wxiaoguang 9219534447
Fix incorrect CORS response in Http Git handler (#24303) 2 years ago
Jason Song 04347eb810
Use context parameter in services/repository (#23186) 2 years ago
yp05327 f1bde2fe00
Return 404 instead of 403 if user can not access the repo (#23155) 2 years ago
yp05327 bd66fa586a
Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
wxiaoguang 50111c71c3
Refactor legacy strange git operations (#22756) 2 years ago
wxiaoguang 6bc3079c00
Refactor git command package to improve security and maintainability (#22678) 2 years ago
Jason Song 4011821c94
Implement actions (#21937) 2 years ago
Lunny Xiao 68704532c2
Rename almost all Ctx functions (#22071) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
wxiaoguang dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
parnic 27789908d8
Use request timeout for git service rpc (#20689) 2 years ago
Lunny Xiao cbd45471b1
Move access and repo permission to models/perm/access (#19350) 3 years ago
Lunny Xiao 4ca1d7547a
Move some helper files out of models (#19355) 3 years ago
6543 06e4687cec
more context for models (#19511) 3 years ago
wxiaoguang 124b072f0b
Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 3 years ago
wxiaoguang b877504b03
Refactor `git.Command.Run*`, introduce `RunWithContextString` and `RunWithContextBytes` (#19266) 3 years ago
KN4CK3R 59b867dc2d
Add `ContextUser` to http request context (#18798) 3 years ago
wxiaoguang 7a550b3af2
Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 3 years ago
wxiaoguang 2b55422cd7
Fix the bug: deploy key with write access can not push (#19010) 3 years ago
KN4CK3R 80fd25524e
Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
zeripath 704bdf89a2
Don't report signal: killed errors in serviceRPC (#18850) 3 years ago
6543 3043eb36bf
Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 3 years ago
Gusted c2e13fb763
Fix partial cloning a repo (#18373) 3 years ago
Lunny Xiao 35fdefc1ff
Always use git command but not os.Command (#18363) 3 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 3 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 3 years ago
Lunny Xiao de8e3948a5
Refactor auth package (#17962) 3 years ago
wxiaoguang 4da1d97810
Refactor HTTP request context (#17979) 3 years ago
Lunny Xiao 5723240490
Some repository refactors (#17950) 3 years ago
Lunny Xiao 719bddcd76
Move repository model into models/repo (#17933) 3 years ago
zeripath 01087e9eef
Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 3 years ago
Lunny Xiao 1fee11d69a
Move accessmode into models/perm (#17828) 3 years ago
Lunny Xiao a666829a37
Move user related model into models/user (#17781) 3 years ago
Lunny Xiao 90eb9fb889
Move EmailAddress & UserRedirect into models/user/ (#17607) 3 years ago
Lunny Xiao 99b2858e62
Move unit into models/unit/ (#17576) 3 years ago
Lunny Xiao 91e21d4fca
Move twofactor to models/login (#17143) 3 years ago