Commit Graph

8 Commits (273a24f22676b73a648fd2a5467e385ec41e84e2)

Author SHA1 Message Date
zeripath 6551a9d6ca
Ensure Request Body Readers are closed in LFS server ()
Christian Muehlhaeuser 54d96c79b5 Removed unnecessary conversions ()
No need to convert to the same type.
kolaente f9ec2f89f2 Add golangci ()
zeripath 31557b1274
Fix LFS Locks over SSH ()
* Fix LFS Locks over SSH
* Mark test as skipped
Lunny Xiao 34eee25bd4
Move sdk structs to modules/structs ()
* move sdk structs to moduels/structs

* fix tests

* fix fmt

* fix swagger

* fix vendor
Antoine GIRARD 9e842c8a72 Fix SSH auth lfs locks ()
* Fix SSH auth LFS locks

* Activate SSH/lock test

* Remove debug

* Follow @lunny recommendation for AfterLoad method
Antoine GIRARD 4035ab05fa Fix git lfs path ()
* add suffix .git

* Remove Content-Type on GET methods

* Add migrations to force creation before any further potential migration
Antoine GIRARD d99f4ab003 Git LFS lock api ()
* Implement routes

* move to api/sdk and create model

* Implement add + list

* List return 200 empty list no 404

* Add verify lfs lock api

* Add delete and start implementing auth control

* Revert to code.gitea.io/sdk/gitea vendor

* Apply needed check for all lfs locks route

* Add simple tests

* fix lint

* Improve tests

* Add delete test + fix

* Add lfs ascii header

* Various fixes from review + remove useless code + add more corner case testing

* Remove repo link since only id is needed.

Save a little of memory and cpu time.

* Improve tests

* Use TEXT column format for path + test

* fix mispell

* Use NewRequestWithJSON for POST tests

* Clean path

* Improve DB format

* Revert uniquess repoid+path

* (Re)-setup uniqueness + max path length

* Fixed TEXT in place of VARCHAR

* Settle back to maximum VARCHAR(3072)

* Let place for repoid in key

* Let place for repoid in key

* Let place for repoid in key

* Revert back