]> source.dussan.org Git - gitea.git/log
gitea.git
5 years ago[ssh] fix the config specification in the authorized_keys template (#8031) (#8193)
Jakob Ackermann [Mon, 16 Sep 2019 01:41:30 +0000 (03:41 +0200)]
[ssh] fix the config specification in the authorized_keys template (#8031) (#8193)

The gitea flags must appear in front of the gitea command. Otherwise
 they are ignored.

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
(cherry picked from commit 89648746a5acd4892a026d2962ff217280dbdf5b)

5 years ago[backport/v1.9] Fix reading git notes from nested trees (#8189)
Filip Navara [Sun, 15 Sep 2019 21:59:08 +0000 (23:59 +0200)]
[backport/v1.9] Fix reading git notes from nested trees (#8189)

* Fix reading notes from nested trees

The GIT documentation for notes states "Permitted pathnames have the
form ab/cd/ef/.../abcdef...: a sequence of directory names of two
hexadecimal digits each followed by a filename with the rest of
the object ID."

* Add test case

* Fix new lines

5 years ago[fix #7384] make show private icon when repo avatar set (#8144) (#8175)
jaqra [Fri, 13 Sep 2019 21:58:31 +0000 (00:58 +0300)]
[fix #7384] make show private icon when repo avatar set (#8144) (#8175)

5 years agoAdd reviewrs as participants (#8124)
guillep2k [Thu, 12 Sep 2019 21:52:33 +0000 (18:52 -0300)]
Add reviewrs as participants (#8124)

5 years agoBackport: Use vendored go-swagger (#8087) (#8165)
Antoine GIRARD [Thu, 12 Sep 2019 19:58:09 +0000 (21:58 +0200)]
Backport: Use vendored go-swagger (#8087) (#8165)

* Use vendored go-swagger (#8087)

* Use vendored go-swagger

* vendor go-swagger

* revert un wanteed change

* remove un-needed GO111MODULE

* Update Makefile

Co-Authored-By: techknowlogick <matti@mdranta.net>
* re-generate swagger file

5 years agotarget go1.12 v1.9.3
Matti R [Sat, 7 Sep 2019 16:40:52 +0000 (12:40 -0400)]
target go1.12

5 years agoChangelog for v1.9.3 (#8117)
guillep2k [Fri, 6 Sep 2019 16:25:24 +0000 (13:25 -0300)]
Changelog for v1.9.3 (#8117)

* Changelog for 1.9.3

* Fix ref to 8071

* Correct punctuation

Co-Authored-By: techknowlogick <matti@mdranta.net>
5 years agoFix Go 1.13 private repository go get issue (#8100)
Rutger Broekhoff [Fri, 6 Sep 2019 13:59:03 +0000 (15:59 +0200)]
Fix Go 1.13 private repository go get issue (#8100)

* Fix Go 1.13 invalid import path creation

Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>
* Apply suggested changes from #8100

Signed-off-by: Rutger Broekhoff <rutger@viasalix.nl>
5 years agoBackport: Strict name matching for Repository.GetTagID() (#8082)
guillep2k [Wed, 4 Sep 2019 14:37:09 +0000 (11:37 -0300)]
Backport: Strict name matching for Repository.GetTagID() (#8082)

* Strict name matching for Repository.GetTagID()

* Add test for GetTagID()

5 years agoAvoid ambiguity of branch/directory names for the git-diff-tree command (#8066) ...
Mura Li [Tue, 3 Sep 2019 19:58:19 +0000 (03:58 +0800)]
Avoid ambiguity of branch/directory names for the git-diff-tree command (#8066) (#8070)

5 years agoBugfix/deformed emoji in commit message (backport 1.9) (#8071)
Mario Lubenka [Tue, 3 Sep 2019 16:05:47 +0000 (18:05 +0200)]
Bugfix/deformed emoji in commit message (backport 1.9) (#8071)

* Fixes deformed emoji in pull request comments or reviews

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Generate css via command

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years agoAdd change title notification for issues (#8064)
guillep2k [Tue, 3 Sep 2019 03:39:53 +0000 (00:39 -0300)]
Add change title notification for issues (#8064)

5 years agoRun CORS handler first for /api routes (#7967) (#8053)
Tamal Saha [Mon, 2 Sep 2019 05:55:33 +0000 (01:55 -0400)]
Run CORS handler first for /api routes (#7967) (#8053)

Signed-off-by: Tamal Saha <tamal@appscode.com>
5 years agoEvaluate emojis in commit messages in list view (#7906) (#8044)
Mario Lubenka [Sat, 31 Aug 2019 13:12:08 +0000 (15:12 +0200)]
Evaluate emojis in commit messages in list view (#7906) (#8044)

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
(cherry picked from commit 08c63190c68ca63f99f510f7f2c6cda41d531343)

5 years agokeep blame view buttons sequence consistent with normal view when view a file (#8007...
Lunny Xiao [Wed, 28 Aug 2019 06:11:41 +0000 (14:11 +0800)]
keep blame view buttons sequence consistent with normal view when view a file (#8007) (#8009)

5 years agoBackport for #7945 (#7994)
Richard Mahn [Tue, 27 Aug 2019 05:01:16 +0000 (01:01 -0400)]
Backport for #7945 (#7994)

5 years agobackport: Fix adding default Telegram webhook (#7992)
Gary Kim [Tue, 27 Aug 2019 04:24:26 +0000 (04:24 +0000)]
backport: Fix adding default Telegram webhook (#7992)

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoAbort syncrhonization from LDAP source if there is some error. (#7965)
David Svantesson [Sun, 25 Aug 2019 00:59:21 +0000 (02:59 +0200)]
Abort syncrhonization from LDAP source if there is some error. (#7965)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
(cherry picked from commit b2d23a138942179d62f9bffdb3df272e9300e35b)

5 years agoAdd release notes of 1.9.2 (#7934) v1.9.2
Lunny Xiao [Thu, 22 Aug 2019 13:36:40 +0000 (21:36 +0800)]
Add release notes of 1.9.2 (#7934)

* Add release notes of 1.9.2

* add missing issue

5 years agoFix pull creation with empty changes (#7920) (#7926)
Mura Li [Wed, 21 Aug 2019 02:14:09 +0000 (10:14 +0800)]
Fix pull creation with empty changes (#7920) (#7926)

* Logs the stderr of git-apply
* Add an integration test
* Skip testPatch when patch is empty

5 years agofix wrong sender when send slack webhook (#7918) (#7924)
Lunny Xiao [Tue, 20 Aug 2019 17:42:14 +0000 (01:42 +0800)]
fix wrong sender when send slack webhook (#7918) (#7924)

5 years agoupload support text/plain; charset=utf8 (#7899)
Lunny Xiao [Sat, 17 Aug 2019 12:59:36 +0000 (20:59 +0800)]
upload support text/plain; charset=utf8 (#7899)

5 years agodrone/docker: prepare multi-arch release + provide arm64 image (#7571) (#7884)
Antoine GIRARD [Thu, 15 Aug 2019 22:13:24 +0000 (00:13 +0200)]
drone/docker: prepare multi-arch release + provide arm64 image (#7571) (#7884)

* drone/docker: prepare multi-arch release

* Add docker-linux-arm64 pipeline

* add arm 64 build to manifest

* tag dry-run + indent

* Fix notify dependency

5 years ago lfs/lock: round locked_at timestamp to second (#7872) (#7875)
Antoine GIRARD [Thu, 15 Aug 2019 10:53:20 +0000 (12:53 +0200)]
 lfs/lock: round locked_at timestamp to second (#7872) (#7875)

* lfs/lock: round locked_at timestamp to second

* test returned locked_at values

* tests: use time RFC3339

5 years agofix non existent milestone with 500 error (#7867) (#7873)
Lanre Adelowo [Thu, 15 Aug 2019 01:37:59 +0000 (02:37 +0100)]
fix non existent milestone with 500 error (#7867) (#7873)

5 years agoAdd changelog of v1.9.1 (#7859) v1.9.1
Lunny Xiao [Wed, 14 Aug 2019 13:26:58 +0000 (21:26 +0800)]
Add changelog of v1.9.1 (#7859)

* add changelog of v1.9.1

* Update CHANGELOG.md

Co-Authored-By: Lauris BH <lauris@nix.lv>
* mention releases build by go1.12.8

* Update CHANGELOG.md

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoFix local runs of ssh-requiring integration tests (#7857)
zeripath [Wed, 14 Aug 2019 11:02:04 +0000 (12:02 +0100)]
Fix local runs of ssh-requiring integration tests (#7857)

5 years agoAttempt to fix hook problem (#7856)
zeripath [Wed, 14 Aug 2019 09:43:02 +0000 (10:43 +0100)]
Attempt to fix hook problem (#7856)

5 years agogpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid gpg key...
Antoine GIRARD [Wed, 14 Aug 2019 02:59:10 +0000 (04:59 +0200)]
gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid gpg key (#7846) (#7850)

* Use .ExpiredUnix.IsZero for display green color of gpg key

* remove useless parentheses

5 years agoDo not fetch all refs (#7837)
Mura Li [Tue, 13 Aug 2019 11:03:01 +0000 (19:03 +0800)]
Do not fetch all refs (#7837)

Which would unnecessarily slow down the pull compare operation.

5 years agoFix duplicate call of webhook (#7821) (#7824)
Antoine GIRARD [Mon, 12 Aug 2019 01:53:26 +0000 (03:53 +0200)]
Fix duplicate call of webhook (#7821) (#7824)

5 years agoEnable switching to a different source branch when PR already exists (#7823)
Mario Lubenka [Sun, 11 Aug 2019 20:32:03 +0000 (22:32 +0200)]
Enable switching to a different source branch when PR already exists (#7823)

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
5 years agoRewrite existing repo units if setting is not included in api body (#7811)
David Svantesson [Sun, 11 Aug 2019 09:45:45 +0000 (11:45 +0200)]
Rewrite existing repo units if setting is not included in api body (#7811)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years agoPrevent Commit Status and Message From Overflowing On Branch Page (#7800) (#7808)
Gary Kim [Fri, 9 Aug 2019 18:40:16 +0000 (18:40 +0000)]
Prevent Commit Status and Message From Overflowing On Branch Page (#7800) (#7808)

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoapi: fix multiple bugs with statuses endpoints (#7785) (#7807)
Antoine GIRARD [Fri, 9 Aug 2019 13:18:46 +0000 (15:18 +0200)]
api: fix multiple bugs with statuses endpoints (#7785) (#7807)

* fix commit statuses api url

* search refs before passing sha

* adjust tests

* directly search tags and branches names + remove un-needed check in NewCommitStatus

* fix comment

* de-duplicate code

* test: use relative setting.AppURL

* Update routers/api/v1/repo/status.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
* remove return

* Update routers/api/v1/repo/status.go

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoFix Slack webhook fork message (#7774) (#7783)
WGH [Wed, 7 Aug 2019 15:57:08 +0000 (18:57 +0300)]
Fix Slack webhook fork message (#7774) (#7783)

The order of forkee and fork was mixed up.

5 years agoFix approvals counting (#7757) (#7777)
Lunny Xiao [Wed, 7 Aug 2019 07:24:01 +0000 (15:24 +0800)]
Fix approvals counting (#7757) (#7777)

* fix approvals counting

* fix tests

* fmt

5 years agofix rename failed when rewrite public keys (#7761) (#7769)
Lunny Xiao [Tue, 6 Aug 2019 07:41:26 +0000 (15:41 +0800)]
fix rename failed when rewrite public keys (#7761) (#7769)

5 years agoFix dropTableColumns sqlite implementation (#7710) (#7765)
zeripath [Tue, 6 Aug 2019 04:35:54 +0000 (05:35 +0100)]
Fix dropTableColumns sqlite implementation (#7710) (#7765)

* Fix dropTableColumns sqlite implementation

* use droptables and its index dropping support in v78 and v85

* golang-ci fixes

* Add migration from gitea 1.3.3 for sqlite which reveals the droptables bug - thus showing this works

5 years agoBe more strict with git arguments (#7715) (#7762)
zeripath [Tue, 6 Aug 2019 02:05:48 +0000 (03:05 +0100)]
Be more strict with git arguments (#7715) (#7762)

* Be more strict with git arguments
* fix-up commit test
* use bindings for branch name

5 years agoadd pagination for admin api get orgs and fix only list public orgs bug (#7742) ...
Lunny Xiao [Mon, 5 Aug 2019 04:08:57 +0000 (12:08 +0800)]
add pagination for admin api get orgs and fix only list public orgs bug (#7742) (#7752)

5 years agoBackport: fix repo_index_status lingering when deleting a repository (#7738)
guillep2k [Sun, 4 Aug 2019 07:00:03 +0000 (04:00 -0300)]
Backport: fix repo_index_status lingering when deleting a repository (#7738)

5 years agoFix milestone completness calculation when migrating (#7725) (#7732)
Lauris BH [Sun, 4 Aug 2019 01:29:17 +0000 (04:29 +0300)]
Fix milestone completness calculation when migrating (#7725) (#7732)

5 years agoFixes indexed repos keeping outdated indexes when files grow too large (#7731)
guillep2k [Sat, 3 Aug 2019 18:42:54 +0000 (15:42 -0300)]
Fixes indexed repos keeping outdated indexes when files grow too large (#7731)

* Fixes indexed repos keeping outdated indexes when files grow too large

Co-Authored-By: zeripath <art27@cantab.net>
5 years agoBackport: skip non-regular files (e.g. submodules) on repo indexing (#7717)
guillep2k [Fri, 2 Aug 2019 14:40:15 +0000 (11:40 -0300)]
Backport: skip non-regular files (e.g. submodules) on repo indexing (#7717)

* Backport: skip non-regular files (e.g. submodules) on repo indexing

* Include "executable" files in the index, as they are not necessarily binary

5 years agoimprove branches list performance and fix protected branch icon when no-login (#7695... 7716/head
Lunny Xiao [Thu, 1 Aug 2019 15:40:00 +0000 (23:40 +0800)]
improve branches list performance and fix protected branch icon when no-login (#7695) (#7704)

5 years agoCorrect wrong datetime format for git (#7689) (#7690)
zeripath [Wed, 31 Jul 2019 21:13:15 +0000 (22:13 +0100)]
Correct wrong datetime format for git (#7689) (#7690)

5 years ago1.9.0 Changelog (#7676) v1.9.0
techknowlogick [Wed, 31 Jul 2019 13:29:31 +0000 (09:29 -0400)]
1.9.0 Changelog (#7676)

5 years agofix duplicated webhook when creating issue with assignees (#7681) (#7684)
Lunny Xiao [Wed, 31 Jul 2019 11:39:34 +0000 (19:39 +0800)]
fix duplicated webhook when creating issue with assignees (#7681) (#7684)

5 years agoupgrade macaron/captcha to fix random error problem (#7407) (#7683)
Lunny Xiao [Wed, 31 Jul 2019 09:09:29 +0000 (17:09 +0800)]
upgrade macaron/captcha to fix random error problem (#7407) (#7683)

5 years agoBackport of #7675. (#7682)
David Svantesson [Wed, 31 Jul 2019 08:19:14 +0000 (10:19 +0200)]
Backport of #7675. (#7682)

Move add to hook queue for created repo to outside xorm session.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
5 years agoShow protection symbol if needed on default branch (#7660) (#7668)
6543 [Tue, 30 Jul 2019 14:48:53 +0000 (16:48 +0200)]
Show protection symbol if needed on default branch (#7660) (#7668)

* backport issue showing portection symbol if needet at default branch

* sugestion to use range .Branches
https://github.com/go-gitea/gitea/pull/7668/files/d57973a8041a741fdb7e77bc6ab18431bbf95ba4

5 years agohide delete/restore button on archived repos [backport] (#7660)
6543 [Mon, 29 Jul 2019 21:20:39 +0000 (23:20 +0200)]
hide delete/restore button on archived repos [backport] (#7660)

* hide delete/restore button on archived repos
close issue #7653
 * backport vor v1.9

* hide column also

* move protected icon to first colum
backport parts of https://github.com/go-gitea/gitea/pull/7461

* backport comit divergenze fix
https://github.com/go-gitea/gitea/issues/7625

5 years agofix bug on migrating milestone from github (#7665) (#7666)
Lunny Xiao [Mon, 29 Jul 2019 16:08:24 +0000 (00:08 +0800)]
fix bug on migrating milestone from github (#7665) (#7666)

5 years agocss: use flex to fix floating paginate (#7656) (#7662)
Antoine GIRARD [Mon, 29 Jul 2019 13:05:53 +0000 (15:05 +0200)]
css: use flex to fix floating paginate (#7656) (#7662)

5 years agochange length of some repository's columns (#7652) (#7655)
Lunny Xiao [Mon, 29 Jul 2019 04:15:13 +0000 (12:15 +0800)]
change length of some repository's columns (#7652) (#7655)

5 years agofix wrong email when use gitea as OAuth2 provider (#7640) (#7647)
renothing [Sat, 27 Jul 2019 14:25:16 +0000 (22:25 +0800)]
fix wrong email when use gitea as OAuth2 provider (#7640) (#7647)

when you use gitea as OAuth2 provider, the /api/v1/user should return
user primary email as identifier, which is unique in OAuth2 clients.

this patch use convert.ToUser replace all u.APIFormat in api requests,
return primary email when caller is yourself or admin.

5 years agoreserve .well-known username (#7638)
Andreas Shimokawa [Fri, 26 Jul 2019 20:37:31 +0000 (22:37 +0200)]
reserve .well-known username (#7638)

5 years agoFix syntax highlight initialization (#7617) (#7626)
silverwind [Fri, 26 Jul 2019 06:12:35 +0000 (08:12 +0200)]
Fix syntax highlight initialization (#7617) (#7626)

* Fix syntax highlight initialization

Previously hljs was initialized via a function that relies on the
DOMContentLoaded event, registerd after jQuery's 'ready' event. I assume
that with the recent jQuery update, DOMContentLoaded may not be
guaranteed to fire after 'ready'. Fixed this via vanilla JS initalization.

Fixes: https://github.com/go-gitea/gitea/issues/7559
* semicolon

5 years agoFix bug create/edit wiki pages when code master branch protected (#7580) (#7623)
Lunny Xiao [Fri, 26 Jul 2019 01:22:20 +0000 (09:22 +0800)]
Fix bug create/edit wiki pages when code master branch protected (#7580) (#7623)

* fix bug create/edit wiki pages when code master branch protected

* improve FullPushingEnvironment function

5 years agoFix panic on push at #7611 (#7615) (#7618)
zeripath [Thu, 25 Jul 2019 21:23:52 +0000 (22:23 +0100)]
Fix panic on push at #7611 (#7615) (#7618)

* Fix panic in #7611

Use pr.IssueID instead of pr.Issue.ID as Issue may not be loaded and is unnecessary

* Only fetch the head branch from the remote

5 years agoHandle ErrUserProhibitLogin in http git (#7586, #7591) (#7590)
zeripath [Tue, 23 Jul 2019 21:06:10 +0000 (22:06 +0100)]
Handle ErrUserProhibitLogin in http git (#7586, #7591) (#7590)

* Handle ErrUserProhibitLogin in http git (#7586)

* Use 403

5 years agofix #7568 (#7587) (#7589)
zeripath [Tue, 23 Jul 2019 19:53:13 +0000 (20:53 +0100)]
fix #7568 (#7587) (#7589)

5 years agoFix file header overflow in file and blame views (#7562) (#7579)
silverwind [Tue, 23 Jul 2019 06:18:39 +0000 (08:18 +0200)]
Fix file header overflow in file and blame views (#7562) (#7579)

5 years agoFixes #7564 - Malformed URLs in API git/commits response (#7565) (#7567)
Richard Mahn [Mon, 22 Jul 2019 21:38:38 +0000 (17:38 -0400)]
Fixes #7564 - Malformed URLs in API git/commits response (#7565) (#7567)

5 years agoFix empty commits now showing in repo overview (#7521) (#7563)
silverwind [Mon, 22 Jul 2019 16:23:49 +0000 (18:23 +0200)]
Fix empty commits now showing in repo overview (#7521) (#7563)

* Fix empty commits now showing in repo overview

* add test

* make fmt

5 years agoFix markdown invoke sequence (#7513) (#7560)
Lunny Xiao [Mon, 22 Jul 2019 11:27:47 +0000 (19:27 +0800)]
Fix markdown invoke sequence (#7513) (#7560)

5 years agoFix repository's pull request count error (#7518) (#7524)
Lunny Xiao [Fri, 19 Jul 2019 06:40:16 +0000 (14:40 +0800)]
Fix repository's pull request count error (#7518) (#7524)

* fix pr count error

* fix tests

5 years agoremove duplicated webhook trigger (#7511) (#7516)
Lunny Xiao [Thu, 18 Jul 2019 13:20:35 +0000 (21:20 +0800)]
remove duplicated webhook trigger (#7511) (#7516)

5 years agoBackport drone fix from #7480 and #7496 (#7504)
Antoine GIRARD [Thu, 18 Jul 2019 04:32:29 +0000 (06:32 +0200)]
Backport drone fix from #7480 and #7496 (#7504)

* don't make release-version deps on transalations since translations is only triggered by push on master (#7496)

* drone/docker: Use a more standard format (#7480)

* drone/docker: Use a more standard format

Based on the plugin drone structure itself : https://github.com/drone-plugins/drone-docker/blob/ebce953fc443371d79b5a019fcc9c1976f60a09a/.drone.yml#L9
Use autotag : http://plugins.drone.io/drone-plugins/drone-docker/#autotag

* use latest plugins/docker:linux-amd64

* remove useless cache_from

* Don't depends on translations step

5 years agoFixes #7474 - Handles all redirects for Web UI File CRUD (#7478) (#7507)
Richard Mahn [Thu, 18 Jul 2019 01:11:55 +0000 (21:11 -0400)]
Fixes #7474 - Handles all redirects for Web UI File CRUD (#7478) (#7507)

* Fixes #7474 - Handles all redirects for Web UI File CRUD

* Fixes lint errors

* Typo fix

* Adds unit tests for a few helper functions

* Fixes per review

* Fix for new branch creation and to unit test

* Fixes the template used for errors on delete

5 years agoBackport for #7475 - settings error (#7483)
Richard Mahn [Tue, 16 Jul 2019 04:45:38 +0000 (00:45 -0400)]
Backport for #7475 - settings error (#7483)

5 years agoFetch refs for successful testing for tag (#7388) v1.9.0-rc2
Matti R [Mon, 15 Jul 2019 14:16:10 +0000 (10:16 -0400)]
Fetch refs for successful testing for tag (#7388)

5 years ago1.9.0-rc2 changelog (#7467)
techknowlogick [Mon, 15 Jul 2019 09:32:34 +0000 (05:32 -0400)]
1.9.0-rc2 changelog (#7467)

* 1.9.0-rc2 changelog

* Update CHANGELOG.md

5 years agoFix regex for issues in commit messages (#7444) (#7466)
mrsdizzie [Sun, 14 Jul 2019 20:05:59 +0000 (16:05 -0400)]
Fix regex for issues in commit messages (#7444) (#7466)

* Fix regex for issues in commit messages

Use same regex as markup for matching in commits.

Fixes #7438

* make fmt

5 years agocmd/serv: actually exit after fatal errors (#7460)
Allen Wild [Sun, 14 Jul 2019 04:02:22 +0000 (00:02 -0400)]
cmd/serv: actually exit after fatal errors (#7460)

Regression in 356854fc5f8d7d1a7e4d68c9e00929e9ce8aa867, where
a log.Fatal call was removed. log.Fatal calls os.Exit(1) as intended,
but without it the fail() function returns normally and execution
continues past the fatal error, causing a panic.

This is visible as a go panic log and stack trace returned to the SSH
client, which is not only ugly, it leaks server and build system
information.

Fix by removing the stray return statement so that the fail() function
always calls os.Exit(1).

Backport: 2186a99c768cf4511d9fbed0781d94d892199873
Fixes: https://github.com/go-gitea/gitea/issues/7457
Signed-off-by: Allen Wild <allenwild93@gmail.com>
5 years agoFix an issue with some pages throwing 'not defined' js exceptions #7450 (#7453)
Gary Kim [Sat, 13 Jul 2019 14:51:44 +0000 (14:51 +0000)]
Fix an issue with some pages throwing 'not defined' js exceptions #7450 (#7453)

Fix an issue introduced by cc8e7dd355c9c625b895a1b633a3a7fa5016f718

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agofix Dropzone.js integration (#7445) (#7448)
silverwind [Fri, 12 Jul 2019 21:27:36 +0000 (23:27 +0200)]
fix Dropzone.js integration (#7445) (#7448)

5 years agobackport of #7393 - create class for inline positioned lists (#7439)
Cherrg [Fri, 12 Jul 2019 19:11:05 +0000 (21:11 +0200)]
backport of #7393 - create class for inline positioned lists (#7439)

see #7393
affects #6464

Signed-off-by: Michael Gnehr michael@gnehr.de
5 years agoDiff: Fix indentation on unhighlighted code (#7435) (#7443)
silverwind [Fri, 12 Jul 2019 16:17:54 +0000 (18:17 +0200)]
Diff: Fix indentation on unhighlighted code (#7435) (#7443)

There was a missing space before the `nohighlight` class which made the
previous class concatenate wrongly as `wrapnohighlight` in the template.

5 years agobackport #7425 - jquery 3 (#7442)
techknowlogick [Fri, 12 Jul 2019 15:20:17 +0000 (11:20 -0400)]
backport #7425 - jquery 3 (#7442)

5 years agoOnly show "New Pull Request" button if repo allows pulls (#7426) (#7432)
Gary Kim [Fri, 12 Jul 2019 04:35:07 +0000 (04:35 +0000)]
Only show "New Pull Request" button if repo allows pulls (#7426) (#7432)

Signed-off-by: Gary Kim <gary@garykim.dev>
5 years agoFix vendor (#7394) (#7396)
Lunny Xiao [Tue, 9 Jul 2019 08:34:53 +0000 (16:34 +0800)]
Fix vendor (#7394) (#7396)

5 years agoonly return head: null if source branch was deleted (#6705) (#7376)
quantonganh [Tue, 9 Jul 2019 02:35:14 +0000 (09:35 +0700)]
only return head: null if source branch was deleted (#6705) (#7376)

* only return head: null if source branch was deleted

* add URL into GetPullRequest

* TestPullRequest_APIFormat

* log error if it is not Err(Branch)NotExist

(cherry picked from commit ff85a6331e02338100e3799b5787bf8b686fe003)

5 years agobackport of #7385 - add missing template variable on organisation settings (#7386)
Cherrg [Mon, 8 Jul 2019 18:03:44 +0000 (20:03 +0200)]
backport of #7385 - add missing template variable on organisation settings (#7386)

affects #6755

Signed-off-by: Michael Gnehr <michael@gnehr.de>
5 years agobackport of #7380 (#7383)
Cherrg [Mon, 8 Jul 2019 15:50:33 +0000 (17:50 +0200)]
backport of #7380 (#7383)

fix post parameter - on issue list - unset assignee

Signed-off-by: Michael Gnehr <michael@gnehr.de>
5 years agoFix migration tests since #7 fixed (#7375) (#7381)
Lunny Xiao [Mon, 8 Jul 2019 15:04:46 +0000 (23:04 +0800)]
Fix migration tests since #7 fixed (#7375) (#7381)

* fix migration tests since #7 fixed

* fix test time

5 years ago1.9.0-RC1 changelog (#7367) v1.10.0-dev v1.9.0-rc1
techknowlogick [Sat, 6 Jul 2019 23:00:49 +0000 (19:00 -0400)]
1.9.0-RC1 changelog (#7367)

5 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 6 Jul 2019 22:14:41 +0000 (22:14 +0000)]
[skip ci] Updated translations via Crowdin

5 years agoui - issue view - fix icon position (#7354)
Cherrg [Sat, 6 Jul 2019 22:03:00 +0000 (00:03 +0200)]
ui - issue view - fix icon position (#7354)

* issue view - fix icon position

- move style from template to css
- add bullets to: key, circle-slash, comment

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* add border to symbols

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix circle slash position

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix top margin

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* changed mixed space/tab indent to tabindent only

Signed-off-by: Michael Gnehr <michael@gnehr.de>
5 years agoui - cut timeline length with last element on issue view (#7355)
Cherrg [Sat, 6 Jul 2019 21:37:46 +0000 (23:37 +0200)]
ui - cut timeline length with last element on issue view (#7355)

* cut timeline length with last element on issue view

fix #7304

- lightly enlight dark theme issue timeline color

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* remove new container

Signed-off-by: Michael Gnehr <michael@gnehr.de>
5 years agoFix typo in PR migration check (#7368)
mrsdizzie [Sat, 6 Jul 2019 20:32:15 +0000 (16:32 -0400)]
Fix typo in PR migration check (#7368)

5 years agoFix mirror sync not automatically sending webhook requests (#7366)
Drew [Sat, 6 Jul 2019 20:01:21 +0000 (16:01 -0400)]
Fix mirror sync not automatically sending webhook requests (#7366)

5 years agoMake captcha and password optional for external accounts (#6606)
AJ ONeal [Sat, 6 Jul 2019 19:48:02 +0000 (13:48 -0600)]
Make captcha and password optional for external accounts (#6606)

5 years agoDetect migrating batch size (#7353)
Lunny Xiao [Sat, 6 Jul 2019 19:24:50 +0000 (03:24 +0800)]
Detect migrating batch size (#7353)

* Make migrating batch size as configurable

* detect different table batch insert size and remove config item

* remove unrelated changes

5 years agorouters: do not leak secrets via timing side channel (#7364)
leonklingele [Sat, 6 Jul 2019 17:03:13 +0000 (19:03 +0200)]
routers: do not leak secrets via timing side channel (#7364)

* routers: do not leak secrets via timing side channel

* routers/repo: do not leak secrets via timing side channel

5 years agorouters/user: ensure that decryption of cookie actually suceeds (#7363)
leonklingele [Sat, 6 Jul 2019 15:47:09 +0000 (17:47 +0200)]
routers/user: ensure that decryption of cookie actually suceeds (#7363)

Previously, only the first return value of ctx.GetSuperSecureCookie
was used to check whether decryption of the auth cookie succeeded.
ctx.GetSuperSecureCookie also returns a second value, a boolean,
indicating success or not. That value should be checked first to
be on the safe side and not rely on internal logic of the encryption
and decryption blackbox.

5 years agoworkaround broken drone build (#7362)
Cherrg [Sat, 6 Jul 2019 15:16:43 +0000 (17:16 +0200)]
workaround broken drone build (#7362)

* workaround broken swagger

only master brach is not working, latest release seems to work

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* make vendor

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Don't export GO111MODULE

* set go-swagger to fixed release version

mentioned here: https://github.com/go-gitea/gitea/pull/7362#discussion_r300831537

Signed-off-by: Michael Gnehr <michael@gnehr.de>
5 years agoupdate contributing to use recent version of drone cli (#7351)
techknowlogick [Wed, 3 Jul 2019 23:28:48 +0000 (19:28 -0400)]
update contributing to use recent version of drone cli (#7351)

fix #7350

5 years agofix api route (#7346)
Lunny Xiao [Wed, 3 Jul 2019 05:31:29 +0000 (13:31 +0800)]
fix api route (#7346)