mirror of
1
Fork 0
forgejo/modules/lfs
KN4CK3R ee5e1c4a88
Rewrite of the LFS server (#15523)
* Restructured code. Moved static checks out of loop.

* Restructured batch api. Add support for individual errors.

* Let router decide if LFS is enabled.

* Renamed methods.

* Return correct status from verify handler.

* Unified media type check in router.

* Changed error code according to spec.

* Moved checks into router.

* Removed invalid v1 api methods.

* Unified methods.

* Display better error messages.

* Added size parameter. Create meta object on upload.

* Use object error on invalid size.

* Skip upload if object exists.

* Moved methods.

* Suppress fields in response.

* Changed error on accept.

* Added tests.

* Use ErrorResponse object.

* Test against message property.

* Add support for the old invalid lfs client.

* Fixed the check because MinIO wraps the error.

* Use individual repositories.

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-06-06 02:59:27 +03:00
..
LICENSE Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
client.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
client_test.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
content_store.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
endpoint.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
endpoint_test.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
filesystem_client.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
http_client.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
http_client_test.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
pointer.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
pointer_scanner_gogit.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
pointer_scanner_nogogit.go Fix lfs management find (#15537) 2021-04-21 18:31:59 +02:00
pointer_test.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
shared.go Rewrite of the LFS server (#15523) 2021-06-06 02:59:27 +03:00
transferadapter.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
transferadapter_test.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00