gitea/models
Fabian Zaremba 2e7ccecfe6 Git LFS support v2 (#122)
* Import github.com/git-lfs/lfs-test-server as lfs module base

Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198

Removed:

Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go
.dockerignore .gitignore README.md

* Remove config, add JWT support from github.com/mgit-at/lfs-test-server

Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83

* Add LFS settings

* Add LFS meta object model

* Add LFS routes and initialization

* Import github.com/dgrijalva/jwt-go into vendor/

* Adapt LFS module: handlers, routing, meta store

* Move LFS routes to /user/repo/info/lfs/*

* Add request header checks to LFS BatchHandler / PostHandler

* Implement LFS basic authentication

* Rework JWT secret generation / load

* Implement LFS SSH token authentication with JWT

Specification: https://github.com/github/git-lfs/tree/master/docs/api

* Integrate LFS settings into install process

* Remove LFS objects when repository is deleted

Only removes objects from content store when deleted repo is the only
referencing repository

* Make LFS module stateless

Fixes bug where LFS would not work after installation without
restarting Gitea

* Change 500 'Internal Server Error' to 400 'Bad Request'

* Change sql query to xorm call

* Remove unneeded type from LFS module

* Change internal imports to code.gitea.io/gitea/

* Add Gitea authors copyright

* Change basic auth realm to "gitea-lfs"

* Add unique indexes to LFS model

* Use xorm count function in LFS check on repository delete

* Return io.ReadCloser from content store and close after usage

* Add LFS info to runWeb()

* Export LFS content store base path

* LFS file download from UI

* Work around git-lfs client issue with unauthenticated requests

Returning a dummy Authorization header for unauthenticated requests
lets git-lfs client skip asking for auth credentials
See: https://github.com/github/git-lfs/issues/1088

* Fix unauthenticated UI downloads from public repositories

* Authentication check order, Finish LFS file view logic

* Ignore LFS hooks if installed for current OS user

Fixes Gitea UI actions for repositories tracking LFS files.
Checks for minimum needed git version by parsing the semantic version
string.

* Hide LFS metafile diff from commit view, marking as binary

* Show LFS notice if file in commit view is tracked

* Add notbefore/nbf JWT claim

* Correct lint suggestions - comments for structs and functions

- Add comments to LFS model
- Function comment for GetRandomBytesAsBase64
- LFS server function comments and lint variable suggestion

* Move secret generation code out of conditional

Ensures no LFS code may run with an empty secret

* Do not hand out JWT tokens if LFS server support is disabled
2016-12-26 09:16:37 +08:00
..
migrations Enables mssql support (#383) 2016-12-24 09:37:35 +08:00
access.go Lint models/access.go 2016-11-26 01:07:57 +01:00
action.go fix tag webhook 404 error (#420) 2016-12-22 22:57:48 +08:00
admin.go Lint models/admin.go 2016-11-24 23:42:07 +01:00
error.go [API] Pull Requests (#248) 2016-12-02 12:10:39 +01:00
git_diff_test.go More MixedCase consts 2016-11-07 17:24:59 +01:00
git_diff.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
issue_comment.go UpdateIssueUsersByMentions was calling database write operations while (#443) 2016-12-22 17:00:39 +08:00
issue_label.go Added sorting to the labels & milestones page (#199) 2016-12-24 22:41:09 +08:00
issue_mail.go UpdateIssueUsersByMentions was calling database write operations while (#443) 2016-12-22 17:00:39 +08:00
issue.go Added sorting to the labels & milestones page (#199) 2016-12-24 22:41:09 +08:00
lfs.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
login_source.go Correction LDAP validation (#342) 2016-12-12 08:46:51 +08:00
mail.go Implement sendmail (#355) 2016-12-25 14:55:22 +01:00
models_sqlite.go go vet 2014-04-13 03:14:43 -04:00
models_test.go #3442 add test suites 2016-08-12 02:56:50 -07:00
models_tidb.go Remove go version from build tags (#133) 2016-11-10 08:43:49 -02:00
models.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
org_team.go rename all uID -> userID on models/org_team.go 2016-11-28 16:33:08 +08:00
org.go Added sorting to organizations, repos & users page (#222) 2016-12-24 22:42:26 +08:00
pull.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
release.go fixed vulnerabilities on deleting release (#399) 2016-12-16 19:42:39 +08:00
repo_branch.go Lint models/repo_branch.go 2016-11-26 11:20:37 +01:00
repo_collaboration.go Fixed linting errors for variable definitions 2016-11-29 14:05:26 +01:00
repo_editor.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
repo_mirror.go Fix string format verbs (#3637) 2016-12-22 08:18:41 +01:00
repo_test.go fixed test build error 2016-11-25 16:02:10 +08:00
repo.go Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
ssh_key_test.go Update import paths from github.com/go-gitea to code.gitea.io (#135) 2016-11-10 17:24:48 +01:00
ssh_key.go Catch os... errors 2016-12-02 07:41:19 +01:00
token.go fixed vulnerabilities (#392) 2016-12-15 16:49:06 +08:00
update.go update code.gitea.io/git (#450) 2016-12-22 10:30:52 +01:00
user_mail.go Fix random string generator (#384) 2016-12-20 13:32:02 +01:00
user.go Added sorting to organizations, repos & users page (#222) 2016-12-24 22:42:26 +08:00
webhook_slack.go Fix breakage from vendor-update 2016-11-29 11:50:22 +01:00
webhook.go Fix string format verbs (#3637) 2016-12-22 08:18:41 +01:00
wiki.go In the wiki title replace tab with a space (#371) 2016-12-11 11:01:26 +08:00