summaryrefslogtreecommitdiffstats
path: root/models/repo.go
Commit message (Collapse)AuthorAgeFilesLines
...
* fix xorm NewSession uncorrected usages (#774)Lunny Xiao2017-01-281-12/+11
|
* Refactor process package and introduce ProcessManager{} with tests (#75)Matthias Loibl2017-01-171-12/+14
| | | | | | | | | | * Add a process.Manager singleton with process.GetManager() * Use process.GetManager everywhere * Fix godoc comments for process module * Increment process counter id after locking the mutex
* bug fixed for update repository (#664)Lunny Xiao2017-01-141-1/+1
|
* API endpoint for subscribers (#598)Ethan Koenig2017-01-071-7/+4
|
* Merge pull request #555 from ethantkoenig/tests/pullAndrey Nering2017-01-061-0/+1
|\ | | | | Unit tests for models/pull.go
| * Unit tests for models/pull.goEthan Koenig2017-01-061-0/+1
| |
* | Create missing database indexes (#596)Andrey Nering2017-01-061-7/+7
|/
* Fix typos in models/ (#576)Ethan Koenig2017-01-051-3/+3
|
* resolved #485: when migrate empty wiki repo, then ignore (#541)Lunny Xiao2016-12-311-2/+5
|
* Tab on user profile to show starred repos (#519)Andrey Nering2016-12-291-60/+0
| | | | | | | | | | | | | | * Tab on user profile to show starred repos * Make golint happy and use transactions on StarRepo function * x -> sess * Use sess.Close() instead of sess.Rollback() * Add copyright * Fix lint
* Replace Gogs with Gitea (#520)Bwko2016-12-281-3/+3
|
* Git LFS support v2 (#122)Fabian Zaremba2016-12-261-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Added sorting to organizations, repos & users page (#222)Bwko2016-12-241-15/+58
|
* Add default values for settings (#455)Lunny Xiao2016-12-231-0/+2
| | | | | | | | | | * add default values for settings * more default values * more default settings and labels resource * mv locale to options
* Bindata is optional and over-writable on restart (#354)Thomas Boerger2016-12-221-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved conf assets into options folder * Dropped old bindata * Started to integrate options bindata and accessors * Do not enforce a builtin app.ini * Replaced bindata calls with options * Dropped bindata task from makefile, it's the generate task now * Always embedd app.ini to provide sane config defaults * Use sane defaults for the configuration * Defined default value for SSH_KEYGEN_PATH * Dropped "NEVER EVER MODIFY THIS FILE" header from app.ini * Fixed new paths in latest test additions * Drop bindata with make clean task * Set more proper default values
* Fix typo (#407)Richie B2B2016-12-161-1/+1
|
* Remove stale comment in models/repo.go (#366)Ethan Koenig2016-12-081-1/+0
|
* Bug fixes for repo permissions in APIEthan Koenig2016-12-071-1/+6
| | | | Also move duplicated code into repo.APIFormat(..)
* Catch os... errorsBwko2016-12-021-5/+25
|
* Added rel="noopener" to target="_blank" hrefs (#327)Bwko2016-12-021-1/+1
| | | | | | * Added rel="noopener" to target="_blank" hrefs * Replaced gogs.io/docs with docs.gitea.io
* Lint models/repo.goBwko2016-11-281-17/+73
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-3/+3
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* golint fixed for modules/markdownLunny Xiao2016-11-251-4/+4
|
* fix variable assigned and not used.Bo-Yi Wu2016-11-151-1/+1
| | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Normalize files with gofmtThibault Meyer2016-11-111-4/+4
|
* Fix import path of go-sdk (#141)Sandro Santilli2016-11-111-1/+1
| | | | From code.gitea.io/go-sdk/gitea To code.gitea.io/sdk/gitea
* Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queriesThibault Meyer2016-11-101-8/+8
|\ | | | | | | | | | | | | | | | | # Conflicts: # models/git_diff.go # models/issue.go # models/org.go # models/pull.go # models/repo.go
| * Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-8/+8
| | | | | | | | | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* | Rewrite XORM queriesThibault Meyer2016-11-101-60/+99
|/
* moreSandro Santilli2016-11-071-9/+9
|
* This one I overlooked beforeSandro Santilli2016-11-071-2/+2
|
* ACCESS_MODE_* -> AccessMode*Sandro Santilli2016-11-071-2/+2
|
* Replaced go-gogs-client with go-sdk importsThomas Boerger2016-11-071-1/+1
|
* Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* Add missing version & gogs packageMatthias Loibl2016-11-051-0/+1
|
* Fix imports found by goimports.Matthias Loibl2016-11-051-7/+4
|
* Implementation of the feature to redirect to an external issue trackerRémy Boulanouar2016-11-041-0/+1
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-6/+6
|
* #3589 LoadRepoConfig after ORM is initializedUnknwon2016-09-021-4/+0
|
* #2018 able to sync now for mirrorsUnknwon2016-08-301-195/+6
| | | | | - Refactor code to use sync.UniqueQueue - Closes #3509
* modules/sync: rename SingleInstancePool to ExclusivePoolUnknwon2016-08-301-1/+1
|
* Web editor: support upload filesUnknwon2016-08-301-194/+0
|
* Load a set of predefined labels (#3459)Thibault Meyer2016-08-291-4/+5
| | | | | | | | | | | | | | | | | | | | | | * Can use a predefined set of labels * Change UI * Fix HTML file indentation * Avoid reading file from other directory (security issue) * Apply a better fix * Remove not used variable * Merge upstream/develop * Do modifications * Raname * remove binding + rename variable
* Fixed typo (#3533)LFlare2016-08-291-1/+1
| | | Git convention has it capitalised.
* Web editor: disallow edit mirror repositoryUnknwon2016-08-281-0/+5
|
* #2901 allow setting preferred licensesUnknwon2016-08-281-0/+15
| | | | - Closes #3488
* #3505 use user’s info for committer and authorUnknwon2016-08-271-1/+4
|
* #3521 fix wiki HTTP/S clone URL does not have .wiki suffixUnknwon2016-08-271-1/+1
|
* Web editor: improve code qualityUnknwon2016-08-241-3/+3
|
* #3383 code cleanupUnknwon2016-08-241-1/+1
|