summaryrefslogtreecommitdiffstats
path: root/models/repo.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-6/+6
|
* fix bu ong normal user visit public repo (#1984)Lunny Xiao2017-06-171-1/+1
|
* fix collborators lack of units on orgnization repositories (#1968)Lunny Xiao2017-06-151-0/+7
| | | | | | * fix collborators lack of units on orgnization repositories * also change log level to debug
* Fix errors caused by force push (#1927)Ethan Koenig2017-06-101-6/+7
|
* Make `LocalCopyPath` a setting instead of a hard-coded path (#1881)Phil Hopper2017-06-061-1/+4
|
* Fix status table race condition (#1835)Ethan Koenig2017-05-311-6/+3
|
* Update code.gitea.io/git (#1824)Ethan Koenig2017-05-301-1/+4
| | | | | | | | * Update code.gitea.io/git * Update function calls * govendor fetch
* Fix deadlock in updateRepository (#1813)Ethan Koenig2017-05-261-4/+8
|
* Delete repo redirects on repo deletion (#1776)Ethan Koenig2017-05-231-0/+1
|
* Fix unloaded owner (#1770)Ethan Koenig2017-05-211-2/+3
|
* fix admin lost permission caused by #947Lunny Xiao2017-05-191-6/+6
|
* Add units to team (#947)Lunny Xiao2017-05-181-2/+56
| | | | | | | | | | | | | | | | | | * add units to team * fix lint * finish team setting backend * finished permission controll on routes * fix import blank line * add unit check on ssh/http pull and push and fix test failed * fix fixtures data * remove unused code
* gofmt (#1710)Ethan Koenig2017-05-121-1/+1
|
* Added Parent property to the repo API (#1687)guyzmo2017-05-121-0/+16
| | | Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
* Exposes in API the Repo entity's Size and IsBare property (#1668)guyzmo2017-05-051-0/+2
| | | | | | | | | | * Exposes in API the Repo entity's IsBare property as IsEmpty Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net> * Exposes in API the Repo entity's Size property Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
* Sanitation fix from Gogs (#1461)Kim "BKC" Carlbäcker2017-04-131-3/+3
| | | | | | | | | | | | | | | | * Santiation fix from Gogs * Linting * Fix build-errors * still not working * Fix all the things! * gofmt * Add code-injection checks
* Repo size in admin panel (#1482)Jonas2017-04-111-0/+25
| | | | | | | | | | | | | | | * Implementation of the feature to view repository size in admin panel * Move GetRepoSize to git module * Repository.RepoSize -> Repository.Size * RepoSize -> Size in template * Redo a few bits and pieces * Update size when syncing mirror or forking * Remove GetRepoSize * Changed fatal errors to error message * Copy migration code from Gogs * make fmt
* Mirror sync interval specified as duration string (#1407)Jonas2017-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Sync interval specifed as duration string * Changed mirror interval text * make fmt * Add MinInterval for mirror sync * Use duration internally * Changed min default to 10m * make fmt * Incorrect default * Removed defaults in MustDuration() * Add Mirror interval migration * Default values corrected * Use transaction during migration * Change http 500 to page with error message * Cleanup session.commit()
* rewrite pre-commit, post-commit and options hooks (fixes #1250) (#1257)Philippe Kueck2017-03-231-6/+7
| | | | | | | | | | | | | | * issue #1250, replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script * issue #1250, make script posix compilant * v23, add migration script to update {pre,post}-receive and update hooks * migration: use a more common name and rename v23 to v26 to avoid conflicts * gofmt'ed and added copyright header * fix SyncRepositoryHooks to also sync wiki repos
* feat: Only use issue and wiki on repo. (#1297)Bo-Yi Wu2017-03-181-1/+1
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-1/+1
|
* bug fixed for delete repo failed (#1193)Lunny Xiao2017-03-101-1/+1
|
* feat: expose url field on issue api. (#982)Bo-Yi Wu2017-03-031-0/+5
| | | | | | | | | | | | | | * Add api url func. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * fix: Add unit testing. * fix: conflicts * fix: remove trim * fix: revert test function name.
* fix wrong num of user repos because of duplicated click delete button & ↵Lunny Xiao2017-03-011-20/+28
| | | | performance optimization (#1092)
* Fix unused Engine bugs (#1064)Ethan Koenig2017-02-271-3/+3
|
* move all repo list functions as a standalone file (#1061)Lunny Xiao2017-02-271-259/+0
|
* fix: Admin can see all private repositories on Explore page. (#1026)Bo-Yi Wu2017-02-261-16/+32
| | | | | | * fix: Admin can see all private repositories on Explore page. * refactor: fix session
* Add "mirror" field to repo APIAndrey Nering2017-02-251-0/+1
|
* refactor: repo counts for SearchRepositoryByName func (#1045)Bo-Yi Wu2017-02-251-10/+16
|
* fix delete repo will hang on postgres (#1044)Lunny Xiao2017-02-241-9/+12
|
* Take back control of hooks (#1006)Lunny Xiao2017-02-231-20/+55
| | | | | | | | | | | | | | | | * git: delegate all server-side Git hooks (#1623) * create hooks directories * take control hooks back * fix lint * bug fixed and minor changes * fix imports style * fix migration scripts
* Fix lint errorsEthan Koenig2017-02-221-1/+1
|
* fix: Wrong repo list on Explore page if user already loggin. (#1009)Bo-Yi Wu2017-02-221-12/+25
| | | | | | | | * fix: Wrong repo list on Explore page if user already loggin. * fix: code readable. * fix: declare variable
* Protected branches system (#339)Denis Denisov2017-02-211-0/+6
| | | | | | | | | | | | | | | | | | | | * Protected branches system * Moved default branch to branches section (`:org/:reponame/settings/branches`). * Initial support Protected Branch. - Admin does not restrict - Owner not to limit - To write permission restrictions * reformat tmpl * finished the UI and add/delete protected branch response * remove unused comment * indent all the template files and remove ru translations since we use crowdin * fix the push bug
* Unit tests for repo watching (#963)Ethan Koenig2017-02-171-103/+0
|
* fix: 500 error on /explore/repos page. (#946)Bo-Yi Wu2017-02-151-17/+14
|
* refactor: small optimize for sql query (#940)Bo-Yi Wu2017-02-151-16/+24
| | | | | | * refactor: small optimize for sql query * fix: get owner name if Searcher is not nil or user star page.
* fix bug of multiple forks (#928)Lunny Xiao2017-02-141-0/+24
|
* feat: support search bar on star tab of user profile. (#917)Bo-Yi Wu2017-02-141-5/+25
| | | | | | | | | | | | | | * feat: support search bar on star tab of user profile. * fix: update testing. * fix: Using loadAttributes * fix: remove empty line. * remove LOWER Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* feat: add git version on admin panel. (#921)Bo-Yi Wu2017-02-131-3/+4
|
* Fix public activity showing private repos (#892)Morgan Bazalgette2017-02-111-0/+10
| | | | | | | | | | * Fix public activity showing private repos (#811) Signed-off-by: Morgan Bazalgette <the@howl.moe> * error check after setting is_private to true * Add test for UpdateRepository w/ visibility change
* Implement archive cleanup (#885)Andrew2017-02-111-3/+58
| | | | | | | | | | | | | | | | * Implement archive cleanup Fixes #769 Signed-off-by: Andrew <write@imaginarycode.com> * Make sure to close the directory file * Resolve issues noted by @strk * edit cheatsheet app.ini [ci skip] * oops [ci skip]
* fix: wrong pages number which includes private repository count. (#844)Bo-Yi Wu2017-02-061-0/+18
|
* Redirects for renamed repos (#807)Ethan Koenig2017-02-051-0/+3
| | | | | | * Redirects for renamed repos * Remove unused phrase from locales
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-29/+121
| | | | | | | | | | | | | | | | * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
* feat: Add search bar on user profile page. (#787)Bo-Yi Wu2017-02-041-2/+6
|
* Drop redundant columns from issue_user table (#638)Ethan Koenig2017-02-031-1/+3
|
* Cleanup log messagingGabriel Jackson2017-02-021-14/+14
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* 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