summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix PR, milestone and label functionality if issue unit is disabled (#2710) ↵Lauris BH2017-10-161-0/+9
| | | | | | | | | | | (#2714) * Fix PR, milestone and label functionality if issue unit is disabled or not assigned to user * Fix multi-actions in PR page * Change error message * Fix comment update and delete functionality in PR
* Fix so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-0/+5
| | | | | | | | | (#2699) (#2707) * Fix so that user can still fork his own repository to his organizations * Fix to only use owned organizations * Add integration test for forking own repository to owned organization
* Fix slice out of bounds error in mailer (#2479) (#2696)Lunny Xiao2017-10-131-1/+2
|
* Fix go get response if only app URL is custom in configuration (#2634) (#2640)Lauris BH2017-10-032-1/+8
| | | | | * Fix go get response if only app URL is custom in configuration * Rewrite to update Domain setting to match AppURL
* fix go get subpackage bug (#2584) (#2589)v1.2.0-rc3Lunny Xiao2017-09-231-11/+13
| | | | | * fix go get subpackage bug * merge the duplicated funtions
* Sync releases table with tags on push and for mirrors (#2459) (#2554)Lauris BH2017-09-211-0/+1
| | | | | | | | | | | | | | * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id
* Backport: Fix lint, fmt and integration testing errors (#2553)Ethan Koenig2017-09-203-9/+3
| | | | | | | | | | * Fix lint errors * Fix fmt errors (#2544) * Hotfix for integration testing (#2473) * Hotfix for integration testing
* Restricting access to fork functioanlity to users with Code access (#2542)Jonas Franz2017-09-191-0/+69
| | | Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix releases to be counted from database not tags (#2389) (#2424)Lauris BH2017-08-301-1/+9
|
* Move 3rd party js/css into `public/vendor` and document sources (#2383)Michael Lustfield2017-08-251-0/+6
| | | | | | | | | This commit cherry picks the following commits (master -> v1.2): a915a09 874f9be 233bbcf Ref: https://github.com/go-gitea/gitea/issues/1484 Signed-off-by: Michael Lustfield <michael@lustfield.net>
* Improve swagger doc (#2274)Antoine GIRARD2017-08-211-0/+4
| | | | | | | | | | | | | | | | | | | | * Add swagger comment for adminCreateOrg * Add swagger comment for admin route * add hook swagger doc * Add tags * Add auth * Fix name of responses * Edit name method * Update vendor * make generate-swagger
* Add OpenID configuration in install page (#2276)Sandro Santilli2017-08-191-0/+2
|
* No error log entries for repo 404 (#2200)Ethan Koenig2017-08-191-2/+2
|
* Fix rendering of external links (#2292)Ethan Koenig2017-08-132-78/+54
|
* Make short link pattern greedy (#2259)Michael Kuhn2017-08-062-1/+7
| | | Multiple links on the same line are currently not recognized correctly.
* Fix internal requests when gitea listens to unix socket or only external IP ↵Lauris BH2017-08-034-12/+34
| | | | | | | | (#2234) * Fix internal requests when gitea listens to unix socket or only external IP * When Gitea is set to listen using FastCGI use AppURL for LocalURL
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-031-0/+150
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* EnableUnit() -> UnitEnabled() (#2242)Ethan Koenig2017-08-021-8/+1
|
* Fix git version check with four digits (1.8.3.1) (#2236)Christoph Handel2017-08-011-1/+1
|
* Fix profile update for non-local users (#2178)Lauris BH2017-07-191-1/+1
|
* Remove unit types commits and settings (#2161)Lauris BH2017-07-171-2/+3
| | | | | | | | | | * Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
* Only show SSH clone URL if signed in (#2169) (#2170)Stefan Kalscheuer2017-07-152-0/+3
| | | | | | | | | | | | | | | | | | | * Add configuration flag SSH_EXPOSE_ANONYMOUS If this flag (default True) is set to false, the SSH clone URL will only be exposed if the current user is signed in. * Default SSH exposure set to false To match GitHub and for security reasons, SSH URL exposure is disabled by default. In addition to that. minor code changes have been applied. Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de> * Add integration tests * Hide clone button neither HTTP and SSH is enabled Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
* Fix SHA1 hash linking (#2143)Roy Marples2017-07-122-6/+15
| | | | | | | | | | | | | | | | This changes the regex to look for a hash from 7 to 40 characters, to match the use of abbreviated hash lookups in both git and github. The restriction of not being a pure number is also removed because 1234567 is now considered a valid abbreviated hash, as is deadbeef. A note has been added to the top of the code to state that the literal regex match is fine, but no extra validation is currently performed so some false positives are expected. A future change could ensure that the hash exists in the repository before rendering it as a link, although this might incur a slight performance penalty. Reverts part of commit 4a46613 and fixes #2053.
* Fix import orderEthan Koenig2017-07-061-4/+4
|
* Relative URL testsEthan Koenig2017-07-061-0/+4
|
* Fix wiki preview linksEthan Koenig2017-07-062-40/+43
|
* Fix missing-return bug (#2109)Ethan Koenig2017-07-041-0/+1
|
* Check for valid renamed usernames (#2077)Ethan Koenig2017-07-011-1/+1
| | | | | | | | | | * Check for valid renamed usernames * Integration test * Test for username with space * Make name field required
* Absolute path for setting.CustomConf (#2085)Ethan Koenig2017-07-011-0/+2
|
* lintEthan Koenig2017-06-291-0/+1
|
* Use default avatar on errorEthan Koenig2017-06-291-1/+6
|
* Don't ignore gravatar errorEthan Koenig2017-06-291-2/+4
|
* Make time diff translatable (#2057)Lauris BH2017-06-282-72/+37
|
* Setting to disable authorized_keys backup (#1856)Dan Magnus Lindvall2017-06-281-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add setting to disable authorized_keys backup when rewriting public keys Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Update default value to comply with documentation Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Use tmp-file instead of bak-file for saving manually added keys. Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change casing and build bakpath with sprintf only Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Only close file once Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not modify calcFingerprint Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Fix casing Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change style from disable to enable Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Change name, just SSH_BACKUP_AUTHORIZED_KEYS Signed-off-by: Magnus Lindvall <magnus@dnmgns.com> * Do not check for directory existence if backup is disabled Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
* Always return valid go-get meta, even if unauthorized (#2010)Kim "BKC" Carlbäcker2017-06-261-3/+41
| | | | | | * Always return valid go-get meta, even if unauthorized * don't leak information
* remove deprecated code for Gogs compitable (#2041)Lunny Xiao2017-06-231-9/+1
|
* ROOT_URL setting use the default as shown in conf/app.ini (#1823)Mike Fellows2017-06-221-12/+18
| | | | | | | | | | | | | | | | | | The well commented conf/app.ini file that comes with the code shows the ROOT_URL (i.e. setting.AppURL) as: ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ However the installed custom/conf/app.ini file does not include this setting as shown, and the default in the setting module was hard coded to http://localhost:3000/ instead of what is shown above. With this change the ROOT_URL will default to what is shown above if it is not set in the custom/conf/app.ini. Of course it is still possible to override the default by adding the ROOT_URL setting to your custom/conf/app.ini file as usual. Signed-off-by: Mike Fellows <mike.fellows@shaw.ca>
* fix misspell (#1996)Bo-Yi Wu2017-06-181-1/+1
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Merge pull request #1829 from ethantkoenig/no_branchesAndrey Nering2017-06-121-0/+4
|\ | | | | Commitless repos should be bare
| * Commitless repos should be bareEthan Koenig2017-05-281-0/+4
| |
* | No highlighting for .txt files (#1922)Ethan Koenig2017-06-091-1/+3
| |
* | Send mails as HTML as default. Setting for send as plain text. (#1648)Jonas Östanbäck2017-06-072-21/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | * Send mails as HTML as default. Setting for send as plain text. * Add new option SendAsPlainText. remove EnableHTMLAlternative * Send HTML mails as default * Add html check if html2text should be performed * Send only multipart or plain. Add deprication warning for ENABLE_HTML_ALTERNATIVE * Still use ENABLE_HTML_ALTERNATIVE for backward compatibility * Changed to not ignore html2text errors
* | Include formatting check to the `make test` (and thus also `check`) rule (#1366)Sandro Santilli2017-06-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Include formatting check to the `make check` rule ... and give it its own standalone target too (make fmt-check) Show diff on fmt-check failure Do not allow running "fmt-check" with incompatible go version Also simplify the `fmt` rule * Forbid running "make fmt" with Go version != 1.7 or 1.8 * Ignore bindata.go for spelling and formatting checks also remove duplicated variable assignment for GOFILES * Run `make fmt`
* | Make `LocalCopyPath` a setting instead of a hard-coded path (#1881)Phil Hopper2017-06-061-0/+14
| |
* | Fix status table race condition (#1835)Ethan Koenig2017-05-312-0/+21
| |
* | Fix PR template error (#1834)Ethan Koenig2017-05-301-7/+5
| |
* | xxx_active_code_live setting in printed in hours and minutes instead … (#1814)Jonas Östanbäck2017-05-292-0/+21
| | | | | | | | | | | | * xxx_active_code_live setting in printed in hours and minutes instead of just hours * Update app.ini description of xxx_code_lives settings
* | Add Gitea Webhook (#1755)Rémy Boulanouar2017-05-292-1/+16
|/ | | | | | | | * Replace Gogs by Gitea * Fix missing changes * Create Gitea webhook and put Gogs webhook apart.
* fix: #1757 fix set MAX_CREATION_LIMIT as zero. (#1762)Bo-Yi Wu2017-05-211-0/+1
| | | | | | * fix: #1757 fix set MAX_CREATION_LIMIT as zero. * fix: missing default value
* Update HighlightJS and fix YAML files highlighting (#1764)Andrey Nering2017-05-201-34/+36
| | | | | | * Update HighlightJS to 9.11.0 * Fix YAML files highlighting