aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
Commit message (Collapse)AuthorAgeFilesLines
* Backport: Hide given credentials for migrated repos. (#9098)Jordan2019-11-201-0/+1
| | | | CloneAddr was being used as OriginalURL. Now passing OriginalURL through from the form and saving it.
* Move migrating repository from frontend to backend (#6200)Lunny Xiao2019-10-131-41/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move migrating to backend * add loading image when migrating and fix tests * fix format * fix lint * add redis task queue support and improve docs * add redis vendor * fix vet * add database migrations and fix app.ini sample * add comments for task section on app.ini.sample * Update models/migrations/v84.go Co-Authored-By: lunny <xiaolunwen@gmail.com> * Update models/repo.go Co-Authored-By: lunny <xiaolunwen@gmail.com> * move migrating to backend * add loading image when migrating and fix tests * fix fmt * add redis task queue support and improve docs * fix fixtures * fix fixtures * fix duplicate function on index.js * fix tests * rename repository statuses * check if repository is being create when SSH request * fix lint * fix template * some improvements * fix template * unified migrate options * fix lint * fix loading page * refactor * When gitea restart, don't restart the running tasks because we may have servel gitea instances, that may break the migration * fix js * Update models/repo.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * fix tests * rename ErrTaskIsNotExist to ErrTaskDoesNotExist * delete release after add one on tests to make it run happy * fix tests * fix tests * improve codes * fix lint * fix lint * fix migrations
* Add option to initialize repository with labels (#6061)John Olheiser2019-09-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add optional label sets on repo creation * Fix CRLF * Instead of hardcoding default, make it the helper * Move label set init out of repo init Add a new error for the router Combine router label init with repo creation label init Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add issue labels to Swagger for repo creation Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update models/issue_label.go Co-Authored-By: Lauris BH <lauris@nix.lv> * Update models/issue_label.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Use gitea forked macaron (#7933)Tamal Saha2019-08-231-1/+1
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* add notification placeholder (#7409)Lunny Xiao2019-07-121-0/+5
|
* Improve migrations to support migrating ↵Lunny Xiao2019-05-071-31/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | milestones/labels/issues/comments/pullrequests (#6290) * add migrations * fix package dependency * fix lints * implements migrations except pull requests * add releases * migrating releases * fix bug * fix lint * fix migrate releases * fix tests * add rollback * pull request migtations * fix import * fix go module vendor * add tests for upload to gitea * more migrate options * fix swagger-check * fix misspell * add options on migration UI * fix log error * improve UI options on migrating * add support for username password when migrating from github * fix tests * remove comments and fix migrate limitation * improve error handles * migrate API will also support migrate milestones/labels/issues/pulls/releases * fix tests and remove unused codes * add DownloaderFactory and docs about how to create a new Downloader * fix misspell * fix migration docs * Add hints about migrate options on migration page * fix tests
* Better logging (#6038) (#6095)zeripath2019-04-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
* move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)Lunny Xiao2019-03-271-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move code.gitea.io/git to code.gitea.io/gitea/modules/git * fix imports * fix fmt * fix misspell * remove wrong tests data * fix unit tests * fix tests * fix tests * fix tests * fix tests * fix tests * enable Debug to trace the failure tests * fix tests * fix tests * fix tests * fix tests * fix tests * comment commit count tests since git clone depth is 50 * fix tests * update from code.gitea.io/git * revert change to makefile
* fix bug when migrate repository 500 when repo is existed (#6188)Lunny Xiao2019-02-261-0/+5
| | | | | | | | * fix bug when migrate repository 500 when repo is existed * use 409 but not 422 for error status code when not exist * translation fix
* Refactor repo.isBare to repo.isEmpty #5629 (#5714)zeripath2019-01-171-4/+4
| | | | | | | | * Refactor repo.isBare to repo.isEmpty #5629 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove Sync call
* Added URL mapping for Release attachments like on github.com (#1707)gdeverlant2019-01-061-0/+32
|
* Refactor and simplify redirect to url (#3674)Lauris BH2018-03-151-5/+1
|
* Handle refactor (#3339)Morgan Bazalgette2018-01-101-16/+16
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-1/+11
|
* Support default private when creating or migrating repository (#3239)Lunny Xiao2017-12-201-2/+15
| | | | | | | | | | * support default private when creating or migrating repository * fix fmt * use string constants on repository default private in app.ini * fix fmt
* Fix error message sanitiziation (#3082)Ethan Koenig2017-12-041-2/+6
|
* Make URL scheme unambiguous (#2408)Ethan Koenig2017-10-301-0/+15
| | | | | | | | | | * Make URL scheme unambiguous Redirect old routes to new routes * Fix redirects to new URL scheme, and update template * Fix branches/_new endpoints, and update integration test
* Webhooks for repo creation/deletion (#1663)Ethan Koenig2017-09-031-4/+4
| | | | | | | | * Webhooks for repo creation/deletion * add createHookTask * Add handles for GetSlackPayload and GetDiscordPayload
* Fix renaming bug (#1786)Ethan Koenig2017-05-241-1/+1
|
* Rename RepoCreationNum -> MaxCreationLimit (#1766)Jonas Östanbäck2017-05-241-1/+1
|
* Add error direclty when user tries to create new repo and limit already hit ↵Jonas Östanbäck2017-05-201-0/+4
| | | | (#1767)
* Add notice that LFS mirroring is not supported (#1251)Fabian Zaremba2017-03-161-0/+1
| | | | | | * Add notice that LFS mirroring is not supported * Drop German translation
* golint fixed for modules/authLunny Xiao2016-11-271-2/+2
|
* Golint fixed for modules/setting (#262)Lunny Xiao2016-11-271-2/+2
| | | | | | * golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
* Merge pull request #228 from Bwko/feature/short-hash-downloadThomas Boerger2016-11-241-1/+1
|\ | | | | Added short-hash support to downloads
| * Added short-hash support to downloadsBwko2016-11-241-1/+1
| |
* | golint fixed for routers (#208)Lunny Xiao2016-11-241-13/+20
|/
* 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
* 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)
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-6/+6
|
* Fix empty repository panic on send test webhookUnknwon2016-08-151-1/+1
|
* Refactor User.Id to User.IDUnknwon2016-07-241-9/+9
|
* Rename module: middleware -> contextUnknwon2016-03-111-10/+10
|
* Updated and created were appended with _unix. Fresh databases have only the ↵Marin Jankovski2016-03-111-1/+1
| | | | newly named fields.
* Admins are allowed to create repos for arbitrary OrgsKim "BKC" Carlbäcker2016-01-201-1/+1
|
* Update repo.goddelpero2016-01-071-1/+1
| | | | Release download file name doesn't include tag number #2339 Download: Changed to use refName instead of commit.ID for downloaded file name
* #2345 disallow access of some pages for empty repoUnknwon2016-01-071-1/+7
|
* #1692 APIs: Users FollowersUnknwon2015-12-211-5/+1
| | | | | - User profile un/follow - List user's followers/following
* rename import pathUnknwon2015-12-151-1/+1
|
* #2167 able to identify git version on WindowsUnknwon2015-12-131-1/+2
|
* #1575 Limit repo creationUnknwon2015-12-101-3/+5
|
* move out git module and #1573 send push hookUnknwon2015-12-091-6/+7
|
* #2037 Add "New Mirror" button on DashboardUnknwon2015-12-091-0/+1
|
* #1984 Better mirror repo managementUnknwon2015-12-081-3/+3
|
* better error messageUnknwon2015-11-191-2/+5
|
* #1971 more general rule to detect errorUnknwon2015-11-191-2/+2
|
* go vet and fix #1890Unknwon2015-11-081-5/+0
|
* rename fieldsUnknwon2015-11-031-2/+2
|
* #1511 Allow local import only for admin usersUnknwon2015-11-031-19/+16
|
* #1657 allow forcing all private reposUnknwon2015-10-251-5/+13
|