You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
KN4CK3R c03e488e14
Add LFS Migration and Mirror (#14726)
* Implemented LFS client.

* Implemented scanning for pointer files.

* Implemented downloading of lfs files.

* Moved model-dependent code into services.

* Removed models dependency. Added TryReadPointerFromBuffer.

* Migrated code from service to module.

* Centralised storage creation.

* Removed dependency from models.

* Moved ContentStore into modules.

* Share structs between server and client.

* Moved method to services.

* Implemented lfs download on clone.

* Implemented LFS sync on clone and mirror update.

* Added form fields.

* Updated templates.

* Fixed condition.

* Use alternate endpoint.

* Added missing methods.

* Fixed typo and make linter happy.

* Detached pointer parser from gogit dependency.

* Fixed TestGetLFSRange test.

* Added context to support cancellation.

* Use ReadFull to probably read more data.

* Removed duplicated code from models.

* Moved scan implementation into pointer_scanner_nogogit.

* Changed method name.

* Added comments.

* Added more/specific log/error messages.

* Embedded lfs.Pointer into models.LFSMetaObject.

* Moved code from models to module.

* Moved code from models to module.

* Moved code from models to module.

* Reduced pointer usage.

* Embedded type.

* Use promoted fields.

* Fixed unexpected eof.

* Added unit tests.

* Implemented migration of local file paths.

* Show an error on invalid LFS endpoints.

* Hide settings if not used.

* Added LFS info to mirror struct.

* Fixed comment.

* Check LFS endpoint.

* Manage LFS settings from mirror page.

* Fixed selector.

* Adjusted selector.

* Added more tests.

* Added local filesystem migration test.

* Fixed typo.

* Reset settings.

* Added special windows path handling.

* Added unit test for HTTPClient.

* Added unit test for BasicTransferAdapter.

* Moved into util package.

* Test if LFS endpoint is allowed.

* Added support for git://

* Just use a static placeholder as the displayed url may be invalid.

* Reverted to original code.

* Added "Advanced Settings".

* Updated wording.

* Added discovery info link.

* Implemented suggestion.

* Fixed missing format parameter.

* Added Pointer.IsValid().

* Always remove model on error.

* Added suggestions.

* Use channel instead of array.

* Update routers/repo/migrate.go

* fmt

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
3 years ago
..
analyze Speed up `enry.IsVendor` (#15213) 3 years ago
auth Add SameSite setting for cookies (#14900) 3 years ago
avatar Avatars and Repo avatars support storing in minio (#12516) 4 years ago
base Add some Unit-Tests (#14500) 3 years ago
cache [Vendor] Update go-redis to v8.5.0 (#13749) 3 years ago
charset Ensure that the detected charset order is set in chardet test (#12574) 4 years ago
context [refactor] replace int with httpStatusCodes (#15282) 3 years ago
convert Expose resolver via API (#15167) 3 years ago
cron Cron job to cleanup hook_task table (#13080) 3 years ago
csv Add Tabular Diff for CSV files (#14661) 3 years ago
doctor Delete Labels & IssueLabels on Repo Delete too (#15039) 3 years ago
emoji Fix several render issues (#14986) 3 years ago
eventsource Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
generate Add gitea-vet (#10948) 4 years ago
git Speed up `enry.IsVendor` (#15213) 3 years ago
gitgraph [Refactor] CombinedStatus and CommitStatus related functions & structs (#14026) 4 years ago
graceful Fix regression from #14623 - use debug SVC handler only on interactive sessions (#15210) 3 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Use existing analyzer module for language detection for highlighting (#13522) 4 years ago
httpcache Use IsProd instead of testing if it's equal. (#14336) 4 years ago
httplib Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
indexer Speed up `enry.IsVendor` (#15213) 3 years ago
lfs Add LFS Migration and Mirror (#14726) 3 years ago
log Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
markup Update to bluemonday-1.0.6 (#15294) 3 years ago
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Add LFS Migration and Mirror (#14726) 3 years ago
nosql [Vendor] Update go-redis to v8.5.0 (#13749) 3 years ago
notification [refactor] mailer service (#15072) 3 years ago
options Add StatDir and replace com.StatDir (#14099) 4 years ago
password Check passwords against HaveIBeenPwned (#12716) 4 years ago
pprof Add golangci (#6418) 5 years ago
private Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
process Reduce data races (#14549) 3 years ago
public add 'fonts' into 'KnownPublicEntries' (#15188) 3 years ago
queue Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
recaptcha Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
references Add mentionable teams to tributeValues and change team mention rules to gh's style (#13198) 4 years ago
repofiles Add LFS Migration and Mirror (#14726) 3 years ago
repository Add LFS Migration and Mirror (#14726) 3 years ago
secret Attachments: Add extension support, allow all types for releases (#12465) 4 years ago
session Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
setting Add Tabular Diff for CSV files (#14661) 3 years ago
ssh Make internal SSH server host key path configurable (#14918) 3 years ago
storage Add size to Save function (#15264) 3 years ago
structs Add LFS Migration and Mirror (#14726) 3 years ago
svg Fix filepath basename on Windows for SVG bindata (#12241) 4 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
templates Prevent incorrect HTML escaping in swagger.json (#14957) 3 years ago
test Move middlewares to web/middleware (#14480) 3 years ago
timeutil Fix display since time round (#14226) 3 years ago
translation Use i18n.Reset to reload locales (#15073) 3 years ago
upload Update golangci-lint to version 1.31.0 (#13102) 4 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 4 years ago
util Add LFS Migration and Mirror (#14726) 3 years ago
validation Move macaron to chi (#14293) 3 years ago
web Fix bug in Wrap (#15302) 3 years ago