]> source.dussan.org Git - gitea.git/log
gitea.git
5 years agofix race on indexer (#9136) (#9139)
Lunny Xiao [Sat, 23 Nov 2019 18:08:49 +0000 (02:08 +0800)]
fix race on indexer (#9136) (#9139)

5 years agoFix reCAPTCHA URL (#9119)
Koichi MATSUMOTO [Fri, 22 Nov 2019 14:48:58 +0000 (23:48 +0900)]
Fix reCAPTCHA URL (#9119)

Fix reCAPTCHA issue

5 years agoBackport: Hide given credentials for migrated repos. (#9098)
Jordan [Wed, 20 Nov 2019 22:23:12 +0000 (16:23 -0600)]
Backport: Hide given credentials for migrated repos. (#9098)

CloneAddr was being used as OriginalURL.
Now passing OriginalURL through from the form and saving it.

5 years agobackport: update golang.org/x/crypto vendor to use acme v2 (#9056) (#9085)
techknowlogick [Wed, 20 Nov 2019 07:12:47 +0000 (02:12 -0500)]
backport: update golang.org/x/crypto vendor to use acme v2 (#9056) (#9085)

5 years agoBackport: Fix password checks on admin create/edit user (#9076) (#9081)
guillep2k [Wed, 20 Nov 2019 00:08:53 +0000 (21:08 -0300)]
Backport: Fix password checks on admin create/edit user (#9076) (#9081)

* Fix password checks on admin create/edit user

* Remove incorrect trimspace

5 years agofix: add search to reserved usernames (#9063) (#9065)
Antoine GIRARD [Mon, 18 Nov 2019 22:40:14 +0000 (23:40 +0100)]
fix: add search to reserved usernames (#9063) (#9065)

* fix: add search to reserved usernames

* Update integrations/user_test.go

Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
5 years agoFix permission checks for close/reopen from commit (#8875) (#9033)
guillep2k [Fri, 15 Nov 2019 22:11:40 +0000 (19:11 -0300)]
Fix permission checks for close/reopen from commit (#8875) (#9033)

* Fix checks for close/reopen from commit

* Fix permission order

5 years agoEnsure Written is set in GZIP ProxyResponseWriter (#9018) (#9025)
zeripath [Fri, 15 Nov 2019 15:57:57 +0000 (15:57 +0000)]
Ensure Written is set in GZIP ProxyResponseWriter (#9018) (#9025)

Fix #9001

The GZIP ProxyReponseWriter doesn't currently respond correctly
to requests about its Written status - leading to #9001.

This PR properly reimplements these methods.

5 years agoFix broken link to branch from issue list (#9003) (#9021)
6543 [Fri, 15 Nov 2019 14:10:28 +0000 (15:10 +0100)]
Fix broken link to branch from issue list (#9003) (#9021)

* Fix broken link to branch from issue list

* Update templates/repo/issue/list.tmpl

5 years agofix wrong system notice when repository is empty (#9020)
Lunny Xiao [Fri, 15 Nov 2019 12:13:58 +0000 (20:13 +0800)]
fix wrong system notice when repository is empty (#9020)

5 years agoShadow password correctly for session config (#8984) (#9002)
zeripath [Thu, 14 Nov 2019 22:34:47 +0000 (22:34 +0000)]
Shadow password correctly for session config (#8984) (#9002)

Fix #8718

This PR shadows passwords in session config correctly by detecting
the VirtualProvider, unmarshalling the original config and then
shadowing config within that.

5 years agoUpdate security (#8990)
John Olheiser [Thu, 14 Nov 2019 16:56:17 +0000 (10:56 -0600)]
Update security (#8990)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoChangelog for 1.10.0 (#8978) v1.10.0
John Olheiser [Thu, 14 Nov 2019 05:09:58 +0000 (23:09 -0600)]
Changelog for 1.10.0 (#8978)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoHotfix for review actions and notifications (#8965)
guillep2k [Thu, 14 Nov 2019 00:38:12 +0000 (21:38 -0300)]
Hotfix for review actions and notifications (#8965)

5 years agoBackport 1.9.6 (#8969)
John Olheiser [Wed, 13 Nov 2019 21:31:27 +0000 (15:31 -0600)]
Backport 1.9.6 (#8969)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoAdd Close() method to gogitRepository (#8901) (#8956)
zeripath [Wed, 13 Nov 2019 13:54:04 +0000 (13:54 +0000)]
Add Close() method to gogitRepository (#8901) (#8956)

Backport #8901

In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.

This PR adds this Close function and adds the Close functions as necessary.

In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.

Fixes #7947

5 years agoUpdate Github Migration Tests (#8938) (#8945)
mrsdizzie [Wed, 13 Nov 2019 05:15:57 +0000 (00:15 -0500)]
Update Github Migration Tests (#8938) (#8945)

Update all Github migration tests to use a new repo created just for
these tests that won't accidentially be modified by regular users
interacting with issues.

Fixes #8895

5 years agoBackport: Enable punctuations ending mentions (#8889) (#8894)
guillep2k [Sun, 10 Nov 2019 01:24:59 +0000 (22:24 -0300)]
Backport: Enable punctuations ending mentions (#8889) (#8894)

* Enable punctuations ending mentions

* Improve tests

5 years agoFix issue with user.fullname (#8903)
zeripath [Sun, 10 Nov 2019 00:06:38 +0000 (00:06 +0000)]
Fix issue with user.fullname (#8903)

5 years agoUpdate Github migration test (#8896)
guillep2k [Sat, 9 Nov 2019 20:15:37 +0000 (17:15 -0300)]
Update Github migration test (#8896)

Earlier today #716 was reopened which updated the modification time for
an old milestone (1.6.0) that we use in testing with the assumption that
it is old and won't change. This breaks all builds now, so remove this
test since we have others that test the same code and this milestone
will likely be updated again as that issue changes etc...

5 years agoBackport: Fix password complexity check on registration (#8887) (#8888)
guillep2k [Sat, 9 Nov 2019 11:52:54 +0000 (08:52 -0300)]
Backport: Fix password complexity check on registration (#8887) (#8888)

* Fix registration password complexity

* Fix integration to use a complex password ;)

5 years agoBackport: Fix require external registration password (#8885) (#8890)
guillep2k [Sat, 9 Nov 2019 08:30:24 +0000 (05:30 -0300)]
Backport: Fix require external registration password (#8885) (#8890)

* Fix require external registration password

* Fix ctx on error condition by @jolheiser

5 years agoFix edit content button on migrated issue content (#8877) (#8884)
mrsdizzie [Fri, 8 Nov 2019 15:43:51 +0000 (10:43 -0500)]
Fix edit content button on migrated issue content (#8877) (#8884)

Typo on a closing span tag caused edit button not to work properly on
the original issue content for a migrated issue.

Fixes #8876

5 years agoFix to close opened io resources as soon as not needed (#8839) (#8846)
Lauris BH [Tue, 5 Nov 2019 20:14:56 +0000 (22:14 +0200)]
Fix to close opened io resources as soon as not needed (#8839) (#8846)

* Fix to close opened io resources as soon as not needed

* Remove unneeded err checks

5 years agoFix new user form for non-local users (#8826) (#8828)
Lauris BH [Tue, 5 Nov 2019 00:19:32 +0000 (02:19 +0200)]
Fix new user form for non-local users (#8826) (#8828)

5 years agoFix commit expand button to not go to commit link (#8745) (#8825)
Lauris BH [Mon, 4 Nov 2019 18:59:17 +0000 (20:59 +0200)]
Fix commit expand button to not go to commit link (#8745) (#8825)

* Fix commit expand button to not go to commit link

* Fix message rendering to have correct HTML in result

* Fix check for empty commit message

* Code optimization

5 years agoFix SSH2 conditonal in key parsing code (#8806) (#8810)
6543 [Sun, 3 Nov 2019 14:51:32 +0000 (15:51 +0100)]
Fix SSH2 conditonal in key parsing code (#8806) (#8810)

Avoid out of bounds error by using strings.HasPrefix to check for
starting SSH2 text rather than assuming user input has at least 31
characters.

Add tests for bad input as well.

Fixes #8800

5 years agoadd missing "d" (#8801)
6543 [Sun, 3 Nov 2019 03:13:38 +0000 (04:13 +0100)]
add missing "d" (#8801)

5 years agofix 500 when edit hook (#8782) (#8789)
Lunny Xiao [Sat, 2 Nov 2019 16:41:06 +0000 (00:41 +0800)]
fix 500 when edit hook (#8782) (#8789)

5 years agoOn windows set core.longpaths true (#8776) (#8786)
zeripath [Sat, 2 Nov 2019 11:25:13 +0000 (11:25 +0000)]
On windows set core.longpaths true (#8776) (#8786)

5 years agoAllow to merge if file path contains " or \ (#8629) (#8771)
zeripath [Fri, 1 Nov 2019 17:50:59 +0000 (17:50 +0000)]
Allow to merge if file path contains " or \ (#8629) (#8771)

* if a filename in a repository contains " or \ the owner can't merge pull request with this files
because "git diff-tree" adds double quotes to that filepath
example: filepath is ab"cd but "git diff-tree" returns "ab\"cd"

now, when the owner click "Merge Pull Request" button the server returns 500
this commit fix it

Signed-off-by: Ilya Pavlov <ilux@cpan.org>
* add -z option to getDiffTree
escape spec symbols for sparse-checkout

Signed-off-by: Ilya Pavlov <ilux@cpan.org>
* go fmt

Signed-off-by: Ilya Pavlov <ilux@cpan.org>
* typo

Signed-off-by: Ilya Pavlov <ilux@cpan.org>
* escape '\'
escape all spaces and '!'

* use regexp.ReplaceAllString()

Signed-off-by: Ilya Pavlov <ilux@cpan.org>
* strings.ReplaceAll was added in go 1.12

Signed-off-by: Ilya Pavlov <ilux@cpan.org>
* add '\' to regexp.MustCompile

Signed-off-by: Ilya Pavlov <ilux@cpan.org>
5 years agoChangelog 1.9.5 (#8753) (#8756)
John Olheiser [Wed, 30 Oct 2019 20:34:13 +0000 (15:34 -0500)]
Changelog 1.9.5 (#8753) (#8756)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoChangelog 1.10.0-rc2 (#8750) v1.10.0-rc2
John Olheiser [Wed, 30 Oct 2019 17:27:52 +0000 (12:27 -0500)]
Changelog 1.10.0-rc2 (#8750)

* 1.10.0-rc2

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Wording

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update CHANGELOG.md

Co-Authored-By: jaqra <48099350+jaqra@users.noreply.github.com>
5 years ago[Fix] milestone close timestamp (#8728) (#8730)
6543 [Tue, 29 Oct 2019 03:11:24 +0000 (04:11 +0100)]
[Fix] milestone close timestamp (#8728) (#8730)

* BugFix: Update closed_date_unix colum on milestone table on close

* go fmt

5 years agoFix deadline on update issue or PR via API (#8698)
David Svantesson [Sun, 27 Oct 2019 23:36:59 +0000 (00:36 +0100)]
Fix deadline on update issue or PR via API (#8698)

5 years agoFix 500 when getting user as unauthenticated user (#8653) (#8663)
Monty Taylor [Fri, 25 Oct 2019 12:09:15 +0000 (21:09 +0900)]
Fix 500 when getting user as unauthenticated user (#8653) (#8663)

Backport #8653

When doing GET /api/v1/users/{user} as an unauthenticated user,
gitea throws a 500 because it's trying to dereference elements
from the context user. It wants to do this to see whether to
show the primary email and will do that if the logged in user
is admin or the user in question. However, if ctx.User is nil there is a panic

5 years agomake call createMilestoneComment on newIssue func (#8678) (#8681)
jaqra [Fri, 25 Oct 2019 10:09:19 +0000 (13:09 +0300)]
make call createMilestoneComment on newIssue func (#8678) (#8681)

* make call createMilestoneComment on newIssue func

* make OldMilestoneID 0 instead of -1

5 years agoHide some user information via API if user have no enough permission (#8655) (#8657)
Lunny Xiao [Thu, 24 Oct 2019 05:59:53 +0000 (13:59 +0800)]
Hide some user information via API if user have no enough permission (#8655) (#8657)

* Hide some user information via API if user have no enough permission

* fix test

5 years agoUse AppSubUrl for more redirections (#8647) (#8651)
zeripath [Wed, 23 Oct 2019 22:27:10 +0000 (23:27 +0100)]
Use AppSubUrl for more redirections (#8647) (#8651)

Partial backport without changes to locale files.

Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template
Fixes /explore and organisation redirection

5 years agoAdd SubURL to redirect path (#8632) (#8634)
John Olheiser [Tue, 22 Oct 2019 21:16:20 +0000 (16:16 -0500)]
Add SubURL to redirect path (#8632) (#8634)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoFix template error on account page (#8562) (#8622)
John Olheiser [Tue, 22 Oct 2019 09:08:59 +0000 (04:08 -0500)]
Fix template error on account page (#8562) (#8622)

5 years agoAllow externalID to be UUID (#8551) (#8624)
guillep2k [Tue, 22 Oct 2019 08:12:10 +0000 (05:12 -0300)]
Allow externalID to be UUID (#8551) (#8624)

Signed-off-by: Wenxuan Zhao <viz@linux.com>
5 years agoPrevent .code-view from overriding font on icon fonts (#8614) (#8627)
guillep2k [Tue, 22 Oct 2019 06:39:40 +0000 (03:39 -0300)]
Prevent .code-view from overriding font on icon fonts (#8614) (#8627)

5 years agoExpose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528...
zeripath [Tue, 22 Oct 2019 06:00:37 +0000 (07:00 +0100)]
Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) (#8618)

* Expose db.SetMaxOpenConns and allow other dbs to set their connection params
* Add note about port exhaustion

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years agofix emoji panel be removed bug in issue page, when the sub issue summit the duplicate...
guillep2k [Mon, 21 Oct 2019 23:17:25 +0000 (20:17 -0300)]
fix emoji panel be removed bug in issue page, when the sub issue summit the duplicate emoji (#8609) (#8623)

5 years agoUpdate heatmap fixtures to restore tests (#8615) (#8616)
zeripath [Mon, 21 Oct 2019 21:15:55 +0000 (22:15 +0100)]
Update heatmap fixtures to restore tests (#8615) (#8616)

* Update heatmap fixtures to restore tests
* Add hint to check the fixture age on fail

5 years agoEnsure that diff stats can scroll independently of the diff (#8581) (#8611)
6543 [Mon, 21 Oct 2019 08:53:34 +0000 (10:53 +0200)]
Ensure that diff stats can scroll independently of the diff (#8581) (#8611)

This PR ensures that once opened the diff stats detail box can be scrolled independently of the diff on the compare page.

Fixes #5532

Details:

* make diff-detail-box the main container
* move file diff at the same level as diff-stats
* make diff-view options sticy again
* make diff-stats scroll if to mouch
* rm useless css info
* less: mv diff-stats to own class
* use new css class
* cleanup less file
* diff-counter: margin-right: 15px;
* make CI work
* make numbers colorful
* add sign (-/+) to numbers

5 years agowebhook: set Content-Type for application/x-www-form-urlencoded (#8600)
Viktor Szakats [Sun, 20 Oct 2019 17:18:05 +0000 (19:18 +0200)]
webhook: set Content-Type for application/x-www-form-urlencoded (#8600)

This header is missing since switching http client from GiteaServer (`code.gitea.io/gitea/modules/httplib`) to Go-http-client/1.1 (`net.http`). The header [was added by default](https://github.com/go-gitea/gitea/blob/release/v1.8/modules/httplib/httplib.go#L301) by the former, but this is no longer true with `net.http`, so it needs to be done explicitly.

Closes: #7700
5 years agoFix #8582 by handling empty repos (#8587) (#8594)
6543 [Sat, 19 Oct 2019 20:35:22 +0000 (22:35 +0200)]
Fix #8582 by handling empty repos (#8587) (#8594)

* Fix #8582 by handling empty repos

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix tests

Signed-off-by: Jonas Franz <info@jonasfranz.software>
5 years agoFix bug on pull requests when transfer head repository (#8564) (#8569)
Lunny Xiao [Sat, 19 Oct 2019 07:29:35 +0000 (15:29 +0800)]
Fix bug on pull requests when transfer head repository (#8564) (#8569)

* fix bug on pull requests when transfer head repository

* add migration and fix lint

* fix tests and add a cache check on LoadBaseRepo

5 years agoAllow more than 255 characters for tokens in external_login_user tabl… (#8585)
6543 [Sat, 19 Oct 2019 04:54:09 +0000 (06:54 +0200)]
Allow more than 255 characters for tokens in external_login_user tabl… (#8585)

* Allow more than 255 characters for tokens in external_login_user table (#8554)

Signed-off-by: Wenxuan Zhao <viz@linux.com>
* use old xorm repo

5 years agoAdd missed close in ServeBlobLFS (#8527) (#8542)
zeripath [Wed, 16 Oct 2019 19:32:15 +0000 (20:32 +0100)]
Add missed close in ServeBlobLFS (#8527) (#8542)

5 years agoEnsure that GitRepo is set on Empty repositories (#8539) (#8541)
zeripath [Wed, 16 Oct 2019 16:03:25 +0000 (17:03 +0100)]
Ensure that GitRepo is set on Empty repositories (#8539) (#8541)

Both issues/new and settings/hooks/git expect `ctx.Repo.GitRepo` to be set.
This PR changes the context code to open the GitRepo.

Fixes #8538

5 years agoFix migrate mirror 500 bug (#8526) (#8530)
6543 [Wed, 16 Oct 2019 09:48:45 +0000 (11:48 +0200)]
Fix migrate mirror 500 bug (#8526) (#8530)

* fix migrate mirror 500 bug

* update backport

5 years agoFix password complexity regex for special characters (backport for v1.10.0) (#8524)
guillep2k [Wed, 16 Oct 2019 03:09:27 +0000 (00:09 -0300)]
Fix password complexity regex for special characters (backport for v1.10.0) (#8524)

* Fix extra space

* Fix regular expression

* Fix error template name

* Simplify check code, fix default values, add test

* Fix router tests

* Fix fmt

* Fix setting and lint

* Move cleaning up code to test, improve comments

* Tidy up variable declaration

5 years agoChangelog for 1.10.0-RC1 (#8510) v1.10.0-rc1
6543 [Mon, 14 Oct 2019 19:34:21 +0000 (21:34 +0200)]
Changelog for 1.10.0-RC1 (#8510)

* Changelog for 1.10.0
* clean up | remove TESTING and DOCS sction | short BUILD section

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-Authored-By: zeripath <art27@cantab.net>
5 years agoFix errors in create org UI regarding team access permission. (#8506)
David Svantesson [Mon, 14 Oct 2019 18:20:42 +0000 (20:20 +0200)]
Fix errors in create org UI regarding team access permission. (#8506)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 14 Oct 2019 17:46:01 +0000 (17:46 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdd nofollow to sign in links (#8509)
guillep2k [Mon, 14 Oct 2019 17:43:48 +0000 (14:43 -0300)]
Add nofollow to sign in links (#8509)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 14 Oct 2019 15:45:33 +0000 (15:45 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoPassword Complexity Checks (#6230)
Maxim Tkachenko [Mon, 14 Oct 2019 15:24:26 +0000 (22:24 +0700)]
Password Complexity Checks  (#6230)

Add password complexity checks. The default settings require a lowercase, uppercase, number and a special character within passwords.

Co-Authored-By: T-M-A <maxim.tkachenko@gmail.com>
Co-Authored-By: Lanre Adelowo <adelowomailbox@gmail.com>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agofix bug on FindExternalUsersByProvider (#8504)
Lunny Xiao [Mon, 14 Oct 2019 07:22:46 +0000 (15:22 +0800)]
fix bug on FindExternalUsersByProvider (#8504)

5 years agoUpdate migrated repositories' issues/comments/prs poster id if user has a github...
Lunny Xiao [Mon, 14 Oct 2019 06:10:42 +0000 (14:10 +0800)]
Update migrated repositories' issues/comments/prs poster id if user has a github external user saved (#7751)

* update migrated issues/comments when login as github

* add get userid when migrating or login with github oauth2

* fix lint

* add migrations for repository service type

* fix build

* remove unnecessary dependencies on migrations

* add cron task to update migrations poster ids and fix posterid when migrating

* fix lint

* fix lint

* improve code

* fix lint

* improve code

* replace releases publish id to actual author id

* fix import

* fix bug

* fix lint

* fix rawdata definition

* fix some bugs

* fix error message

5 years agovendor: update mvdan.cc/xurls/v2 to v2.1.0 (#8495)
Antoine GIRARD [Mon, 14 Oct 2019 00:38:15 +0000 (02:38 +0200)]
vendor: update mvdan.cc/xurls/v2 to v2.1.0 (#8495)

5 years agoRewrite reference processing code in preparation for opening/closing from comment...
guillep2k [Sun, 13 Oct 2019 22:29:10 +0000 (19:29 -0300)]
Rewrite reference processing code in preparation for opening/closing from comment references (#8261)

* Add a markdown stripper for mentions and xrefs

* Improve comments

* Small code simplification

* Move reference code to modules/references

* Fix typo

* Make MarkdownStripper return [][]byte

* Implement preliminary keywords parsing

* Add FIXME comment

* Fix comment

* make fmt

* Fix permissions check

* Fix text assumptions

* Fix imports

* Fix lint, fmt

* Fix unused import

* Add missing export comment

* Bypass revive on implemented interface

* Move mdstripper into its own package

* Support alphanumeric patterns

* Refactor FindAllMentions

* Move mentions test to references

* Parse mentions from reference package

* Refactor code to implement renderizable references

* Fix typo

* Move patterns and tests to the references package

* Fix nil reference

* Preliminary rendering attempt of closing keywords

* Normalize names, comments, general tidy-up

* Add CSS style for action keywords

* Fix permission for admin and owner

* Fix golangci-lint

* Fix golangci-lint

5 years agoUpdate seek-help.zh-cn.md (#8488)
Benson Muite [Sun, 13 Oct 2019 21:36:09 +0000 (00:36 +0300)]
Update seek-help.zh-cn.md (#8488)

Update link to Mandarin help forum

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Oct 2019 20:23:11 +0000 (20:23 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoUpdate seek-help.en-us.md (#8487)
Benson Muite [Sun, 13 Oct 2019 20:07:30 +0000 (23:07 +0300)]
Update seek-help.en-us.md (#8487)

Update link to Mandarin help

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Oct 2019 16:31:19 +0000 (16:31 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoIsBranchExist: return false if provided name is empty (#8485)
zeripath [Sun, 13 Oct 2019 16:29:08 +0000 (17:29 +0100)]
IsBranchExist: return false if provided name is empty (#8485)

* IsBranchExist: return false if provided name is empty

* Ensure that the reference returned is actually of a valid type

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Oct 2019 14:37:37 +0000 (14:37 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFixes #8369: Create .ssh dir as necessary (#8486)
zeripath [Sun, 13 Oct 2019 14:35:19 +0000 (15:35 +0100)]
Fixes #8369: Create .ssh dir as necessary (#8486)

* Ensure .ssh dir exists before rewriting public keys

* Ensure .ssh dir exists before appending to authorized_keys

* Log the error because it would be useful to know where it is trying to MkdirAll

* Only try to create RootPath if it's not empty

5 years agoMove migrating repository from frontend to backend (#6200)
Lunny Xiao [Sun, 13 Oct 2019 13:23:14 +0000 (21:23 +0800)]
Move migrating repository from frontend to backend (#6200)

* 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

5 years agoFix #8453 by making openssh listen on SSH_LISTEN_PORT not SSH_PORT (#8477)
zeripath [Sat, 12 Oct 2019 15:45:00 +0000 (16:45 +0100)]
Fix #8453 by making openssh listen on SSH_LISTEN_PORT not SSH_PORT (#8477)

5 years agoAdd check for empty set when dropping indexes during migration (#8471)
guillep2k [Sat, 12 Oct 2019 04:55:07 +0000 (01:55 -0300)]
Add check for empty set when dropping indexes during migration (#8471)

* Add check for empty set when dropping indexes during migration

5 years agoRestore functionality for early gits (#7775)
zeripath [Sat, 12 Oct 2019 00:13:27 +0000 (01:13 +0100)]
Restore functionality for early gits (#7775)

* Change tests to make it possible to run TestGit with 1.7.2

* Make merge run on 1.7.2

* Fix tracking and staging branch name problem

* Ensure that git 1.7.2 works on tests

* ensure that there is no chance for conflicts

* Fix-up missing merge issues

* Final rm

* Ensure LFS filters run on the tests

* Do not sign commits from temp repo

* Restore tracking fetch change

* Apply suggestions from code review

* Update modules/repofiles/temp_repo.go

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 11 Oct 2019 21:34:17 +0000 (21:34 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoLatvian translation for home page (#8468)
Lauris BH [Fri, 11 Oct 2019 21:32:52 +0000 (00:32 +0300)]
Latvian translation for home page (#8468)

5 years agoAdd home template italian translation (#8352)
spaeps [Fri, 11 Oct 2019 17:04:59 +0000 (19:04 +0200)]
Add home template italian translation (#8352)

It was just missing

5 years agoMove change issue title from models to issue service package (#8456)
Lunny Xiao [Fri, 11 Oct 2019 06:44:43 +0000 (14:44 +0800)]
Move change issue title from models to issue service package (#8456)

* move change issue title from models to issue service package

* make the change less

* fix typo

5 years agoEnsure that LFS files are relative to the LFS content path (#8455)
zeripath [Thu, 10 Oct 2019 21:08:33 +0000 (22:08 +0100)]
Ensure that LFS files are relative to the LFS content path (#8455)

5 years agoEnsure Request Body Readers are closed in LFS server (#8454)
zeripath [Thu, 10 Oct 2019 17:42:28 +0000 (18:42 +0100)]
Ensure Request Body Readers are closed in LFS server (#8454)

5 years agoIgnore mentions for users with no access (#8395)
guillep2k [Thu, 10 Oct 2019 16:45:11 +0000 (13:45 -0300)]
Ignore mentions for users with no access (#8395)

* Draft for ResolveMentionsByVisibility()

* Correct typo

* Resolve teams instead of orgs for mentions

* Create test for ResolveMentionsByVisibility

* Fix check for individual users and doer

* Test and fix team mentions

* Run all mentions through visibility filter

* Fix error check

* Simplify code, fix doer included in teams

* Simplify team id list build

5 years agoAdd @yasarciv67 to TRANSLATORS file (#8451)
Yaşar Çiv [Thu, 10 Oct 2019 13:47:38 +0000 (16:47 +0300)]
Add @yasarciv67 to TRANSLATORS file (#8451)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 10 Oct 2019 12:44:06 +0000 (12:44 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoDOCS: add mention of swagger api reference (#8452)
pseudocoder [Thu, 10 Oct 2019 12:42:01 +0000 (15:42 +0300)]
DOCS: add mention of swagger api reference (#8452)

It's(swagger api link) mentioned vaguely in the FAQ but IMHO missing from API usage page.

5 years agoadd crowdin badge (#8447)
6543 [Thu, 10 Oct 2019 02:16:58 +0000 (04:16 +0200)]
add crowdin badge (#8447)

5 years agoDoc recommend to use reverse proxy if Apache/nginx is also running on… (#8384)
8ctopus [Wed, 9 Oct 2019 23:11:25 +0000 (04:11 +0500)]
Doc recommend to use reverse proxy if Apache/nginx is also running on… (#8384)

* Doc recommend to use reverse proxy if Apache/nginx is also running on server

* Update docs/content/doc/usage/https-support.md

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
5 years agoDoc updated list of supported webhooks and added example (#8388)
8ctopus [Wed, 9 Oct 2019 22:33:03 +0000 (03:33 +0500)]
Doc updated list of supported webhooks and added example (#8388)

* Doc updated list of supported webhooks and added example

* Replaced webhook password verification by signature verification

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 9 Oct 2019 19:02:21 +0000 (19:02 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoCheck for either escaped or unescaped wiki filenames (#8408)
Tekaoh [Wed, 9 Oct 2019 18:49:37 +0000 (13:49 -0500)]
Check for either escaped or unescaped wiki filenames (#8408)

* Check for either escaped or unescaped wiki filenames

+ Gitea currently saves wiki pages with escaped filenames.
+ Wikis mirrored from other places like Github use unescaped filenames.
+ We need to be checking for filenames in either format to increase compatibility.

* Better logic for escaped and unescaped wiki filenames

Co-Authored-By: null <guillep2k@users.noreply.github.com>
5 years agofix template bug on mirror repository setting page (#8438)
Lunny Xiao [Wed, 9 Oct 2019 13:09:02 +0000 (21:09 +0800)]
fix template bug on mirror repository setting page (#8438)

5 years agoFix migration v96 to keep issue attachments (#8435)
guillep2k [Wed, 9 Oct 2019 09:36:53 +0000 (06:36 -0300)]
Fix migration v96 to keep issue attachments (#8435)

* Fix migration v96 to keep issue attachments

* Fix == operator

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 9 Oct 2019 01:29:16 +0000 (01:29 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoChangelog for v1.9.4 (#8422) (#8433)
guillep2k [Wed, 9 Oct 2019 01:27:45 +0000 (22:27 -0300)]
Changelog for v1.9.4 (#8422) (#8433)

* changelog

* Update CHANGELOG.md

We ned to revert this then ...

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoUpdate golangci to v1.20 (#8432)
kolaente [Tue, 8 Oct 2019 20:42:30 +0000 (22:42 +0200)]
Update golangci to v1.20 (#8432)

* Update golangci to v1.20

Signed-off-by: kolaente <k@knt.li>
* Use the timeout flag instead of deadline, move it to config

Signed-off-by: kolaente <k@knt.li>
5 years agoUpdate strk.kbt.io/projects/go/libravatar to latest; closes #7860 (#8429)
guillep2k [Tue, 8 Oct 2019 19:48:57 +0000 (16:48 -0300)]
Update strk.kbt.io/projects/go/libravatar to latest; closes #7860 (#8429)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 8 Oct 2019 19:20:34 +0000 (19:20 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAllow users with explicit read access to give approvals (#8382)
guillep2k [Tue, 8 Oct 2019 19:18:17 +0000 (16:18 -0300)]
Allow users with explicit read access to give approvals (#8382)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 8 Oct 2019 18:23:11 +0000 (18:23 +0000)]
[skip ci] Updated translations via Crowdin