]> source.dussan.org Git - gitea.git/log
gitea.git
5 years agoIssue 5924 fix compare button (#5929)
zeripath [Mon, 4 Feb 2019 00:56:18 +0000 (00:56 +0000)]
Issue 5924 fix compare button (#5929)

* Revert #5877

This unfortunately was not the solution.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Change permission check to create pull requests to CanReadIssuesOrPulls

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoFix ssh deploy and user key constraints (#1357) (#5939)
zeripath [Sun, 3 Feb 2019 23:56:53 +0000 (23:56 +0000)]
Fix ssh deploy and user key constraints (#1357) (#5939)

1. A key can either be an ssh user key or a deploy key. It cannot be both.
2. If a key is a user key - it can only be associated with one user.
3. If a key is a deploy key - it can be used in multiple repositories and the permissions it has on those repositories can be different.
4. If a repository is deleted, its deploy keys must be deleted too.

We currently don't enforce any of this and multiple repositories access with different permissions doesn't work at all. This PR enforces the following constraints:

- [x] You should not be able to add the same user key as another user
- [x] You should not be able to add a ssh user key which is being used as a deploy key
- [x] You should not be able to add a ssh deploy key which is being used as a user key
- [x] If you add an ssh deploy key to another repository you should be able to use it in different modes without losing the ability to use it in the other mode.
- [x] If you delete a repository you must delete all its deploy keys.

Fix #1357

5 years agoshow user who created the repository instead of the organization in action feed ...
Lanre Adelowo [Sun, 3 Feb 2019 23:21:08 +0000 (00:21 +0100)]
show user who created the repository instead of the organization in action feed (#5948)

5 years agohandle milestone events for issues and PR (#5947)
Lanre Adelowo [Sun, 3 Feb 2019 18:31:58 +0000 (19:31 +0100)]
handle milestone events for issues and PR (#5947)

5 years agoFix notifications on pushing with deploy keys by setting hook environment variables...
zeripath [Sun, 3 Feb 2019 14:00:48 +0000 (14:00 +0000)]
Fix notifications on pushing with deploy keys by setting hook environment variables (#5935)

The gitea prerecieve and postrecieve hooks and the gitea PushUpdate function require that the PusherID and PusherName are real users. Previously, these environment variables were not being set when using a deploy key - the main result being that pushing to empty repositories meant that is_empty status was not changed.

I've also added an integration test to ensure that the is_empty status is updated on pushing with a deploy key.

There is a slight issue in that the deploy key is now considered a proxy for the owner - we don't have a way of separating out the deploy key from the owner at present. This can be fixed in another PR.

Fix #3795

Signed-off-by: Andrew Thornton art27@cantab.net
5 years agoFix #5866: Silence console logger in gitea serv (#5887)
zeripath [Sun, 3 Feb 2019 11:19:28 +0000 (11:19 +0000)]
Fix #5866: Silence console logger in gitea serv  (#5887)

By default, if `setting.NewContext()` prints out any warning logs, these are printed to the stdout breaking `git receive-pack` etc. meaning that even if there is a warning because of a minor problem in your app.ini but gitea starts despite this - you **CANNOT** push or pull over SSH.

This PR disables the console logger whilst in `serv.go`

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoRemove all CommitStatus when a repo is deleted (#5940)
John Olheiser [Sun, 3 Feb 2019 04:03:45 +0000 (22:03 -0600)]
Remove all CommitStatus when a repo is deleted (#5940)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoAdd single commit API support (#5843)
Lunny Xiao [Sun, 3 Feb 2019 03:35:17 +0000 (11:35 +0800)]
Add single commit API support (#5843)

* add single commit API support

5 years agoMake log mailer for testing (#5893)
zeripath [Sun, 3 Feb 2019 02:06:52 +0000 (02:06 +0000)]
Make log mailer for testing (#5893)

* Create log mailer for testing email settings

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Switch on the log mailer for the integration tests

This ensures that the sending mail process works

Signed-off-by: Andrew Thornton <art27@cantab.net>
* rename the from user for mysql/mssql

* rename log sender to dummy sender

* update the integration tests

5 years agofix log output (#5938)
Sergey Romanov [Sat, 2 Feb 2019 21:56:15 +0000 (02:56 +0500)]
fix log output (#5938)

5 years agoFix wrapping long code lines in UI (#5927)
silverwind [Sat, 2 Feb 2019 16:58:28 +0000 (17:58 +0100)]
Fix wrapping long code lines in UI (#5927)

Wrapping was initially added in https://github.com/go-gitea/gitea/pull/2789
but it is currently disabled because the rule that applies wrapping to
the wrap class did not have enough CSS specificity.

Resolved the issue by using a general selector that matches all code
boxes. The previous wrap class was removed because it had only been
inconsistenly applied to various code boxes and because I found no easy
way to add classes to code boxes rendered in Markdown.

Also removed a seemingly useless :before on code view and added padding
to restore the spacing.

5 years agoUI: Better support for long repo names (#5932)
silverwind [Sat, 2 Feb 2019 12:44:33 +0000 (13:44 +0100)]
UI: Better support for long repo names (#5932)

* UI: Make long repo names wrap less often

* also adjust news feed column widths

5 years agosupport reviewing on a deleted file path (#5880)
Lanre Adelowo [Fri, 1 Feb 2019 01:37:20 +0000 (02:37 +0100)]
support reviewing on a deleted file path (#5880)

5 years ago1.7.1 changelog (#5919)
techknowlogick [Thu, 31 Jan 2019 16:42:22 +0000 (11:42 -0500)]
1.7.1 changelog (#5919)

5 years agoDisable redirect for i18n (#5910)
techknowlogick [Thu, 31 Jan 2019 14:38:20 +0000 (09:38 -0500)]
Disable redirect for i18n (#5910)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 31 Jan 2019 13:39:54 +0000 (13:39 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix bug when read public repo lfs file (#5912)
Lunny Xiao [Thu, 31 Jan 2019 13:36:57 +0000 (21:36 +0800)]
Fix bug when read public repo lfs file (#5912)

* fix bug when read public repo lfs file

* add comment on lfs permission check

5 years agoRecover panic in orgmode.Render if bad orgfile (#4982) (#5903)
zeripath [Wed, 30 Jan 2019 22:17:43 +0000 (22:17 +0000)]
Recover panic in orgmode.Render if bad orgfile (#4982) (#5903)

This PR protects against the panic referred to in chaseadmsio/goorgeous#82
by recovering from the panic and just returning the raw bytes if
there is an error.

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoProvide better panic handling (#5902)
zeripath [Wed, 30 Jan 2019 22:00:00 +0000 (22:00 +0000)]
Provide better panic handling (#5902)

This PR gitea'ises the macaron.Recovery() handler meaning that in
the event of panic we get proper gitea 500 pages and the stacktrace
is logged with the gitea logger.

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoOnly allow local login if password is non-empty (#5906)
zeripath [Wed, 30 Jan 2019 21:18:54 +0000 (21:18 +0000)]
Only allow local login if password is non-empty (#5906)

5 years agoFix go-get URL generation (#5905)
Lauris BH [Wed, 30 Jan 2019 21:04:19 +0000 (23:04 +0200)]
Fix go-get URL generation (#5905)

5 years agodon't allow pull requests to be created on an archived repository (#5883)
Lanre Adelowo [Wed, 30 Jan 2019 17:20:40 +0000 (18:20 +0100)]
don't allow pull requests to be created on an archived repository (#5883)

* don't allow pull requests to be created on an archived repository
Also disable the "PR" button if the repo is archived

* Refuse creating an issue/PR via API calls too

5 years agoDon't discard the value of DISABLE_REGULAR_ORG_CREATION (#5886)
Lanre Adelowo [Wed, 30 Jan 2019 17:04:14 +0000 (18:04 +0100)]
Don't discard the value of DISABLE_REGULAR_ORG_CREATION (#5886)

* Consider the configuration value of DISABLE_REGULAR_ORG_CREATION when
creating a user

5 years agorespect value of REQUIRE_SIGNIN_VIEW (#5901)
Lanre Adelowo [Wed, 30 Jan 2019 16:45:48 +0000 (17:45 +0100)]
respect value of REQUIRE_SIGNIN_VIEW (#5901)

5 years agoFix new release creation API to allow empty target (#5870)
Lauris BH [Wed, 30 Jan 2019 16:33:00 +0000 (18:33 +0200)]
Fix new release creation API to allow empty target (#5870)

* Fix new release creation API to allow empty target

* Add more test cases

* Update swagger

5 years agoif repo does not exist, show a 404 not a 500 (#5900)
Lanre Adelowo [Wed, 30 Jan 2019 16:13:39 +0000 (17:13 +0100)]
if repo does not exist, show a 404 not a 500 (#5900)

5 years agoUI: Correct footer height if screen-width is to small (fixes #5878) (#5889) (#5889)
EpicCoder [Wed, 30 Jan 2019 00:45:08 +0000 (01:45 +0100)]
UI: Correct footer height if screen-width is to small (fixes #5878) (#5889) (#5889)

5 years agofix compare button on upstream repo leading to 404 (#5877)
Lanre Adelowo [Tue, 29 Jan 2019 23:49:07 +0000 (00:49 +0100)]
fix compare button on upstream repo leading to 404 (#5877)

5 years agoUI: Change GPG Validation colors and remove inline CSS; fixes #5404 (#5896)
EpicCoder [Tue, 29 Jan 2019 23:11:53 +0000 (00:11 +0100)]
UI: Change GPG Validation colors and remove inline CSS; fixes #5404 (#5896)

5 years agoAlso ensure the repo is loaded (#5895)
zeripath [Tue, 29 Jan 2019 22:43:40 +0000 (22:43 +0000)]
Also ensure the repo is loaded (#5895)

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 29 Jan 2019 21:28:45 +0000 (21:28 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoEnsure issue.Poster is loaded in mailIssueCommentToParticipants (#5891)
zeripath [Tue, 29 Jan 2019 21:26:17 +0000 (21:26 +0000)]
Ensure issue.Poster is loaded in mailIssueCommentToParticipants (#5891)

Previous code could potentially dereference nil - this PR ensures
that the poster is loaded before dereferencing it.

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoAdd migration test (#5773)
zeripath [Mon, 28 Jan 2019 16:18:52 +0000 (16:18 +0000)]
Add migration test (#5773)

* Add migration test

This commit adds a simple migration test for v1.5.3, v1.6.4 and v1.7.0-rc3

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Automigrate based on available dbs

* remove old ini file

* Standardise the dialect names

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 28 Jan 2019 15:55:40 +0000 (15:55 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix wrong URL to download link. (#5881)
vee w [Mon, 28 Jan 2019 15:53:16 +0000 (22:53 +0700)]
Fix wrong URL to download link. (#5881)

* Fix wrong URL to download link.

The link does not contain trailing slash and cause error page displayed.

* Update version

5 years agoNew Issue ?body= query (#5851)
kekero [Mon, 28 Jan 2019 15:23:59 +0000 (18:23 +0300)]
New Issue ?body= query (#5851)

* New Issue ?body= query

* Override issue template with body query

* Add documentation for issue body query

5 years agoFix "pulls.blocked_by_approvals" text (#5879)
Lanre Adelowo [Mon, 28 Jan 2019 15:05:20 +0000 (16:05 +0100)]
Fix "pulls.blocked_by_approvals" text (#5879)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 28 Jan 2019 14:16:11 +0000 (14:16 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAPI: Fix null pointer in attempt to Sudo if not logged in (#5872)
zeripath [Mon, 28 Jan 2019 14:13:59 +0000 (14:13 +0000)]
API: Fix null pointer in attempt to Sudo if not logged in (#5872)

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoRevert #3711 overwrite of only show "No Description" to repo admins #2167 (#5836)
Gabriel Silva Simões [Sun, 27 Jan 2019 21:13:15 +0000 (16:13 -0500)]
Revert #3711 overwrite of only show "No Description" to repo admins  #2167 (#5836)

Revert #3711 overwrite of only show "No Description" to repo admins  #2167 and add tests to prevent accidental overwrite again.

5 years agoFix wording of #5858 issue.review.reject string (#5869)
zeripath [Sun, 27 Jan 2019 17:39:49 +0000 (17:39 +0000)]
Fix wording of #5858 issue.review.reject string (#5869)

As per @lafriks comment this should be: requested changes

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 27 Jan 2019 11:31:56 +0000 (11:31 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoFix an error while adding a dependency via UI. (#5862)
Harshit Bansal [Sun, 27 Jan 2019 11:31:40 +0000 (17:01 +0530)]
Fix an error while adding a dependency via UI. (#5862)

Fixes: #5783
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 27 Jan 2019 09:27:05 +0000 (09:27 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoConfig option to disable automatic repo watching (#5852)
sebastian-sauer [Sun, 27 Jan 2019 09:25:21 +0000 (10:25 +0100)]
Config option to disable automatic repo watching (#5852)

Add a new config option to enable / disable the automatic watching of
repos for new repositories and if a user is added to a team.

Fixes #653

Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
5 years agoRename reject to 'request changes' (#5858)
Lanre Adelowo [Sat, 26 Jan 2019 17:20:56 +0000 (18:20 +0100)]
Rename reject to 'request changes' (#5858)

* remame reject to 'request changes

* make usee of requested changes in issue's view content

5 years agoFix failing migration v67 (#5849)
Jakub Arbet [Sat, 26 Jan 2019 14:50:36 +0000 (15:50 +0100)]
Fix failing migration v67 (#5849)

Fixes #5848

5 years agoFix MinInterval (#5856)
yasuokav [Sat, 26 Jan 2019 08:26:23 +0000 (17:26 +0900)]
Fix MinInterval (#5856)

Fixes #5847

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 26 Jan 2019 00:17:00 +0000 (00:17 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMove input fields to add members to a team and repos to a team (#5853)
sebastian-sauer [Sat, 26 Jan 2019 00:14:35 +0000 (01:14 +0100)]
Move input fields to add members to a team and repos to a team (#5853)

Move input fields to the top so no scrolling is needed to add
new members / repos to a team.

Signed-off-by: Sebastian Sauer <sauer.sebastian@gmail.com>
5 years agofix delete correct temp directory (#5839)
yasuokav [Fri, 25 Jan 2019 07:54:09 +0000 (16:54 +0900)]
fix delete correct temp directory (#5839)

5 years agoupdate swagger for release API pagination (#5841)
Lunny Xiao [Fri, 25 Jan 2019 07:10:50 +0000 (15:10 +0800)]
update swagger for release API pagination (#5841)

5 years agoimprove the releases api paging (#5831)
Lunny Xiao [Thu, 24 Jan 2019 18:59:27 +0000 (02:59 +0800)]
improve the releases api paging (#5831)

* improve the releases api paging

* add max limit on API paging

5 years agoAdded docs for the tree api (#5834)
kolaente [Thu, 24 Jan 2019 18:13:30 +0000 (19:13 +0100)]
Added docs for the tree api (#5834)

* Added docs for the tree api

* Added missing response definition

* Fixed swagger docs

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 24 Jan 2019 15:23:19 +0000 (15:23 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoInclude Go toolchain to --version (#5830)
Antoine GIRARD [Thu, 24 Jan 2019 15:22:51 +0000 (16:22 +0100)]
Include Go toolchain to  --version (#5830)

* Include Go version

* fix import order

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 24 Jan 2019 14:22:36 +0000 (14:22 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoEnsure valid git author names passed in signatures (#5774)
zeripath [Thu, 24 Jan 2019 14:12:17 +0000 (14:12 +0000)]
Ensure valid git author names passed in signatures (#5774)

* Ensure valid git author names passed in signatures

Fix #5772 - Git author names are not allowed to include `\n` `<` or `>` and
must not be empty. Ensure that the name passed in a signature is valid.

* Account for pathologically named external users

LDAP and the like usernames are not checked in the same way that users who signup are.
Therefore just ensure that user names are also git safe and if totally pathological -
Set them to "user-$UID"

* Add Tests and adjust test users

Make our testcases a little more pathological so that we be sure that integration
tests have a chance to spot these cases.

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoFix topics saving internal error and disable for archived repos (#5821)
Lauris BH [Thu, 24 Jan 2019 10:22:27 +0000 (12:22 +0200)]
Fix topics saving internal error and disable for archived repos (#5821)

5 years agoMake sure .git/info is created before generating .git/info/sparse-che… (#5825)
Mura Li [Thu, 24 Jan 2019 07:43:37 +0000 (15:43 +0800)]
Make sure .git/info is created before generating .git/info/sparse-che… (#5825)

* Make sure .git/info is created before generating .git/info/sparse-checkout

* fix permissions

5 years agoRemove tidb reference from docs (#5823)
techknowlogick [Thu, 24 Jan 2019 07:12:42 +0000 (02:12 -0500)]
Remove tidb reference from docs (#5823)

* Remove tidb reference from docs

* Update from-source.fr-fr.md

* Update from-source.zh-cn.md

* Update from-source.zh-tw.md

5 years agoWhen creating new repository fsck option should be enabled (#5817)
Lauris BH [Thu, 24 Jan 2019 03:26:18 +0000 (05:26 +0200)]
When creating new repository fsck option should be enabled (#5817)

5 years agoFix TLS errors when using acme/autocert for local connections (#5820)
Joona Hoikkala [Thu, 24 Jan 2019 00:47:54 +0000 (02:47 +0200)]
Fix TLS errors when using acme/autocert for local connections (#5820)

5 years ago Request for public keys only if LDAP attribute is set (#5816)
Lauris BH [Wed, 23 Jan 2019 23:25:33 +0000 (01:25 +0200)]
 Request for public keys only if LDAP attribute is set  (#5816)

* Update go-ldap dependency

* Request for public keys only if attribute is set

5 years agoNew API routes added (#5594)
Shashvat Kedia [Wed, 23 Jan 2019 22:30:19 +0000 (04:00 +0530)]
New API routes added (#5594)

* New API routes added

* Comments added

* Build fix

* swagger_v1_json.tmpl without new line character

* Typo fix

* Code review changes

* Code review changes

* Add copyright

* Add copyright

* Add copyright

* Update per @lafriks feedback

* Update org.go

* Update user.go

* Update user.go

* make fmt

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 23 Jan 2019 20:11:56 +0000 (20:11 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAdapt documentation to renamed ENABLE_SWAGGER option (#5811)
Peter Colberg [Wed, 23 Jan 2019 20:09:18 +0000 (15:09 -0500)]
Adapt documentation to renamed ENABLE_SWAGGER option (#5811)

Updates documentation to account for the renamed ENABLE_SWAGGER_ENDPOINT from  #3572 (commit a74426d631e3311cc3c460ae9917f76f0221f4de)

Signed-off-by: Peter Colberg <peter@colberg.org>
5 years agoFeature: Archive repos (#5009)
kolaente [Wed, 23 Jan 2019 18:58:38 +0000 (19:58 +0100)]
Feature: Archive repos (#5009)

5 years agoOptimize pulls merging (#4921)
Mura Li [Wed, 23 Jan 2019 10:26:32 +0000 (18:26 +0800)]
Optimize pulls merging (#4921)

* Optimize pulls merging

By utilizing `git clone -s --no-checkout` rather than cloning the whole
repo.

* Use sparse-checkout to speedup pulls merge

* Use bytes.Buffer instead of strings.Builder for backward compatibility

* Fix empty diff-tree output for repos with only the initial commit

* Fix missing argument for the format string

* Rework diff-tree-list generation

* Remove logging code

* File list for sparse-checkout must be prefix with /

Otherwise, they would match all files with the same name under
subdirectories.

* Update onto the rebased head

* Use referecen repo to avoid fetching objects

5 years agoPooled and buffered gzip implementation (#5722)
zeripath [Wed, 23 Jan 2019 08:56:51 +0000 (08:56 +0000)]
Pooled and buffered gzip implementation (#5722)

* Pooled and buffered gzip implementation

* Add test for gzip

* Add integration test

* Ensure lfs check within transaction

The previous code made it possible for a race condition to occur whereby a LFSMetaObject could be checked into the database twice. We should check if the LFSMetaObject is within the database and insert it if not in one transaction.

* Try to avoid primary key problem in postgres

The integration tests are being affected by
https://github.com/go-testfixtures/testfixtures/issues/39 if we set the
primary key high enough, keep a count of this and remove at the end of
each test we shouldn't be affected by this.

5 years agoAdd the ability to use multiple labels as filters(#5786)
Lauris BH [Wed, 23 Jan 2019 04:10:38 +0000 (06:10 +0200)]
Add the ability to use multiple labels as filters(#5786)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 22 Jan 2019 20:31:11 +0000 (20:31 +0000)]
[skip ci] Updated translations via Crowdin

5 years agobackport 1.7.0 changelog (#5804)
techknowlogick [Tue, 22 Jan 2019 20:07:07 +0000 (15:07 -0500)]
backport 1.7.0 changelog (#5804)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Jan 2019 17:53:09 +0000 (17:53 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoAllow markdown table to scroll (#4401)
pgodwin [Mon, 21 Jan 2019 17:51:28 +0000 (03:51 +1000)]
Allow markdown table to scroll (#4401)

* Allow markdown table to scroll

`overflow:auto` isn't effective when a table is wider than the container. Adding `display:block` fixes this issue.

5 years agoDisallow empty titles (#5785)
Lanre Adelowo [Mon, 21 Jan 2019 11:45:32 +0000 (12:45 +0100)]
Disallow empty titles (#5785)

* add util method and tests

* make sure the title of an issue cannot be empty

* wiki title cannot be empty

* pull request title cannot be empty

* update to make use of the new util methof

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Jan 2019 10:14:44 +0000 (10:14 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix migration 78 error mssql (#5791)
Lunny Xiao [Mon, 21 Jan 2019 10:12:45 +0000 (18:12 +0800)]
fix migration 78 error mssql (#5791)

5 years agoEnsure error is logged on db reconnection attempts (#5780)
Paul Brackin [Sun, 20 Jan 2019 09:30:37 +0000 (01:30 -0800)]
Ensure error is logged on db reconnection attempts (#5780)

Unfortunately a scoping problem was missed on the previous PR which meant that the only nil error was logged on failure to connect to the db. This pr fixes this.

5 years agoChange systemd service file to more correctly match Debian & Centos - Fix #4391 ...
techknowlogick [Sun, 20 Jan 2019 04:55:39 +0000 (23:55 -0500)]
Change systemd service file to more correctly match Debian & Centos - Fix #4391 (#5777)

5 years agoFix the v78 migration script (#5776)
zeripath [Sun, 20 Jan 2019 01:20:52 +0000 (01:20 +0000)]
Fix the v78 migration script (#5776)

Unfortunately the last fix didn't completely fix the migration to v79 of the db
due to bug with schema locking during Sync2. This should fix this issue.

Fix #5759

Signed-off-by: Andrew Thornton <art27@cantab.net>
5 years agoAdd documentation for SHOW_REGISTRATION_BUTTON (#5778)
techknowlogick [Sat, 19 Jan 2019 23:22:47 +0000 (18:22 -0500)]
Add documentation for SHOW_REGISTRATION_BUTTON (#5778)

* Fix #5737

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 19 Jan 2019 21:19:01 +0000 (21:19 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMake db connect more robust (#5738)
Paul Brackin [Sat, 19 Jan 2019 21:17:08 +0000 (13:17 -0800)]
Make db connect more robust (#5738)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 19 Jan 2019 20:41:54 +0000 (20:41 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoMoved defaults in defaults.go to setting.go (#5764)
John Olheiser [Sat, 19 Jan 2019 20:39:27 +0000 (14:39 -0600)]
Moved defaults in defaults.go to setting.go (#5764)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoldap: Adjust log settings when a user is not found. (#5771)
Harshit Bansal [Sat, 19 Jan 2019 19:57:27 +0000 (01:27 +0530)]
ldap: Adjust log settings when a user is not found. (#5771)

Fixes: #3849.
5 years agoFix wording when user is unassigned from an issue (#5769)
Lanre Adelowo [Sat, 19 Jan 2019 19:16:46 +0000 (20:16 +0100)]
Fix wording when user is unassigned from an issue (#5769)

Previous Gitea would display that the user had unassigned themselves even if the actor
was not the user. Fixes #4418

5 years agoForce the PR close time to 60 days (#5770)
Antoine GIRARD [Sat, 19 Jan 2019 17:21:03 +0000 (18:21 +0100)]
Force the PR close time to 60 days (#5770)

Like the comment that is posted.

Ex: https://github.com/go-gitea/gitea/pull/4749 is closed after 2 weeks and not 2 months

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 19 Jan 2019 16:31:25 +0000 (16:31 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoLog IP of failed ssh connection (#5766)
Robert Sprunk [Sat, 19 Jan 2019 16:29:17 +0000 (17:29 +0100)]
Log IP of failed ssh connection (#5766)

Fix #5765 by log the IP address of a connecting remote machine in case of a SSH connection error for the built-in ssh server.

Signed-off-by: Robert Sprunk <github@sprunk.me>
5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 18 Jan 2019 14:52:26 +0000 (14:52 +0000)]
[skip ci] Updated translations via Crowdin

5 years agofix migration bug (#5762)
Lunny Xiao [Fri, 18 Jan 2019 14:50:38 +0000 (22:50 +0800)]
fix migration bug (#5762)

5 years agobackport 1.7.0-rc3 changelog (#5758)
techknowlogick [Fri, 18 Jan 2019 09:16:26 +0000 (04:16 -0500)]
backport 1.7.0-rc3 changelog (#5758)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 18 Jan 2019 03:32:53 +0000 (03:32 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoDisable auto-migrate in docker container (#5730)
techknowlogick [Fri, 18 Jan 2019 03:31:14 +0000 (22:31 -0500)]
Disable auto-migrate in docker container (#5730)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 18 Jan 2019 00:01:50 +0000 (00:01 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoRefactor repo.isBare to repo.isEmpty #5629 (#5714)
zeripath [Fri, 18 Jan 2019 00:01:04 +0000 (00:01 +0000)]
Refactor repo.isBare to repo.isEmpty #5629 (#5714)

* Refactor repo.isBare to repo.isEmpty #5629

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove Sync call

5 years agoupdate docs to include THEMES config value (#5752)
Lanre Adelowo [Thu, 17 Jan 2019 19:48:01 +0000 (20:48 +0100)]
update docs to include THEMES config value (#5752)

* update docs to include THEMES

* Update app.ini.sample

* Update config-cheat-sheet.en-us.md

5 years agoRefactor notification for indexer (#5111)
Lunny Xiao [Thu, 17 Jan 2019 14:23:22 +0000 (22:23 +0800)]
Refactor notification for indexer (#5111)

* notification for indexer

* use NullNotifier as parent struct