Commit Graph

80 Commits (e6ab6e637fb4da2353522d192066869fc2a8a94b)

Author SHA1 Message Date
wxiaoguang 7c613f100e
Make sure git version&feature are always prepared (#30877) 6 months ago
Chongyi Zheng e80466f734
Resolve lint for unused parameter and unnecessary type arguments (#30750) 7 months ago
silverwind 74f0c84fa4
Enable more `revive` linter rules (#30608) 7 months ago
wxiaoguang 7cb88e9c18
Use correct hash for "git update-index" (#30626) 7 months ago
wxiaoguang 83f83019ef
Clean up log messages (#30313) 7 months ago
Earl Warren f6d01ac2d8
Add download URL for executable files (#28260) 8 months ago
Lunny Xiao e308d25f1b
Cache repository default branch commit status to reduce query on commit status table (#29444) 8 months ago
Lunny Xiao 29f149bd9f
Move context from modules to services (#29440) 9 months ago
KN4CK3R 4197e28100
Refactor git attributes (#29356) 9 months ago
Lunny Xiao b79c30435f
Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 9 months ago
vincent 35d5e4aea4
Fix content size does not match error when uploading lfs file (#29259) 9 months ago
KN4CK3R 94d06be035
Extract linguist code to method (#29168) 9 months ago
Lunny Xiao 5f82ead13c
Simplify how git repositories are opened (#28937) 10 months ago
Mihir Joshi b8270240bf
Fix reverting a merge commit failing (#28794) 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 dd30d9d5c0
Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 11 months ago
silverwind ce83609ff6
Upgrade to golangci-lint@v1.55.0 (#27756) 1 year ago
JakobDev cc5df26680
Even more `db.DefaultContext` refactor (#27352) 1 year ago
Lunny Xiao 673cf6af76
make writing main test easier (#27270) 1 year ago
JakobDev 28f9b313ba
Updates to the API for archived repos (#27149) 1 year ago
JakobDev c548dde205
More refactoring of `db.DefaultContext` (#27083) 1 year ago
Lunny Xiao 4f32abaf94
move repository deletion to service layer (#26948) 1 year ago
wxiaoguang e8aae43f56
Move web/api context related testing function into a separate package (#26859) 1 year ago
Chongyi Zheng ad43486cd3
Fix some slice append usages (#26778) 1 year ago
wxiaoguang c6b92c84fe
Sync repo's IsEmpty status correctly (#26517) 1 year ago
wxiaoguang 236c645bf1
Refactor "Content" for file uploading (#25851) 1 year ago
wxiaoguang 22eeede885
Do not "guess" the file encoding/BOM when using API to upload files (#25828) 1 year ago
silverwind 88f835192d
Replace `interface{}` with `any` (#25686) 1 year ago
Lunny Xiao 6e19484f4d
Sync branches into databases (#22743) 1 year ago
wxiaoguang 4e2f1ee58d
Refactor web package and context package (#25298) 1 year ago
yp05327 22a39bb961
Fix profile render when the README.md size is larger than 1024 bytes (#25131) 1 year ago
wxiaoguang a90988d63f
Update repo's default branch when adding new files in an empty one (#25017) 1 year ago
Denys Konovalov 275d4b7e3f
API endpoint for changing/creating/deleting multiple files (#24887) 1 year ago
wxiaoguang cf465b4721
Support uploading file to empty repo by API (#24357) 2 years ago
wxiaoguang e422342eeb
Allow adding new files to an empty repo (#24164) 2 years ago
wxiaoguang ce9dee5a1e
Introduce path Clean/Join helper functions (#23495) 2 years ago
来自村里的小螃蟹 f83246edb2
fix submodule is nil panic (#23588) 2 years ago
Lunny Xiao b116418f05
Use CleanPath instead of path.Clean (#23371) 2 years ago
Zettat123 4de5cd9f36
Return empty url for submodule tree entries (#23043) 2 years ago
Lunny Xiao bd820aa9c5
Add context cache as a request level cache (#22294) 2 years ago
sillyguodong 51ab495198
escape filename when assemble URL (#22850) 2 years ago
wxiaoguang 6bc3079c00
Refactor git command package to improve security and maintainability (#22678) 2 years ago
Lunny Xiao 2782c14396
Supports wildcard protected branch (#20825) 2 years ago
Jason Song 7adc2de464
Use context parameter in models/git (#22367) 2 years ago
Jason Song 6cf09ccab4
Use complete SHA to create and query commit status (#22244) 2 years ago
Lunny Xiao 0a7d3ff786
refactor some functions to support ctx as first parameter (#21878) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
wxiaoguang dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago