]> source.dussan.org Git - gitea.git/log
gitea.git
5 years agoEnsure Written is set in GZIP ProxyResponseWriter (#9018) (#9026) release/v1.9
zeripath [Fri, 15 Nov 2019 15:58:23 +0000 (15:58 +0000)]
Ensure Written is set in GZIP ProxyResponseWriter (#9018) (#9026)

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 agoChangelog for 1.9.6 (#8967) v1.9.6
John Olheiser [Wed, 13 Nov 2019 20:49:02 +0000 (14:49 -0600)]
Changelog for 1.9.6 (#8967)

* Changelog for 1.9.6

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

Backport #8901 - Adjusted slightly for 1.9

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 Test (#8946)
mrsdizzie [Wed, 13 Nov 2019 04:33:33 +0000 (23:33 -0500)]
Update Github Migration Test (#8946)

Small fix for test on 1.9 since #8938 can't be easily back ported to
this branch.

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

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

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 agofix 500 when edit hook (#8782) (#8790)
Lunny Xiao [Sat, 2 Nov 2019 18:31:29 +0000 (02:31 +0800)]
fix 500 when edit hook (#8782) (#8790)

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

* 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) v1.9.5
John Olheiser [Wed, 30 Oct 2019 17:40:15 +0000 (12:40 -0500)]
Changelog 1.9.5 (#8753)

* 1.9.5

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago[Backport] [Fix] milestone close timestamp (#8728) (#8731)
6543 [Tue, 29 Oct 2019 05:24:24 +0000 (06:24 +0100)]
[Backport] [Fix] milestone close timestamp (#8728) (#8731)

* [Fix] milestone close timestamp (#8728)

* BugFix: Update closed_date_unix colum on milestone table on close

* use go standart time lib

* make backport work!

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

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

* make call createMilestoneComment on newIssue func

* make OldMilestoneID 0 instead of -1

5 years agoRevert "API should follow RequireSignInView (#8654) (#8661)" (#8674)
Lunny Xiao [Thu, 24 Oct 2019 21:07:13 +0000 (05:07 +0800)]
Revert "API should follow RequireSignInView (#8654) (#8661)" (#8674)

This reverts commit ffff835b7338a25be96df8747a336f07afc49db2.

5 years agoFix 500 when getting user as unauthenticated user (#8662)
Monty Taylor [Thu, 24 Oct 2019 08:25:30 +0000 (17:25 +0900)]
Fix 500 when getting user as unauthenticated user (#8662)

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,
go gets really unhappy.

5 years agoAPI should follow RequireSignInView (#8654) (#8661)
Lunny Xiao [Thu, 24 Oct 2019 06:57:24 +0000 (14:57 +0800)]
API should follow RequireSignInView (#8654) (#8661)

5 years agoHide some user information via API if user have no enough permission (#8655) (#8658)
Lunny Xiao [Thu, 24 Oct 2019 06:01:40 +0000 (14:01 +0800)]
Hide some user information via API if user have no enough permission (#8655) (#8658)

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

* fix test

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

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) (#8640)
John Olheiser [Wed, 23 Oct 2019 06:11:29 +0000 (01:11 -0500)]
Add SubURL to redirect path (#8632) (#8634) (#8640)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years agoUpdate heatmap fixtures to restore tests (#8615) (#8617)
zeripath [Mon, 21 Oct 2019 21:19:27 +0000 (22:19 +0100)]
Update heatmap fixtures to restore tests (#8615) (#8617)

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

5 years agoFix #8582 by handling empty repos (#8587) (#8593)
6543 [Sat, 19 Oct 2019 19:07:12 +0000 (21:07 +0200)]
Fix #8582 by handling empty repos (#8587) (#8593)

* 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 pull request files will be broken if head repo was transfered to another...
Lunny Xiao [Fri, 18 Oct 2019 08:14:37 +0000 (16:14 +0800)]
fix bug pull request files will be broken if head repo was transfered to another user or orgnization (#8571)

5 years agoAdd missed close in ServeBlobLFS (#8527) (#8543)
zeripath [Wed, 16 Oct 2019 16:05:23 +0000 (17:05 +0100)]
Add missed close in ServeBlobLFS (#8527) (#8543)

5 years agoFixes #8369: Create .ssh dir as necessary (#8486) (#8489)
zeripath [Sun, 13 Oct 2019 20:01:52 +0000 (21:01 +0100)]
Fixes #8369: Create .ssh dir as necessary (#8486) (#8489)

* 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 agoIsBranchExist: return false if provided name is empty (#8485) (#8492)
zeripath [Sun, 13 Oct 2019 17:23:43 +0000 (18:23 +0100)]
IsBranchExist: return false if provided name is empty (#8485) (#8492)

* IsBranchExist: return false if provided name is empty

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

5 years agoBackport: Ignore mentions for users with no access (#8395) (#8484)
guillep2k [Sun, 13 Oct 2019 15:17:53 +0000 (12:17 -0300)]
Backport: Ignore mentions for users with no access (#8395) (#8484)

* Ignore mentions for users with no access

* Fix fmt

5 years agoRestore functionality for early gits (#7775) (#8476)
zeripath [Sun, 13 Oct 2019 04:40:13 +0000 (05:40 +0100)]
Restore functionality for early gits (#7775) (#8476)

* 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

* Apply suggestions from code review

* Update modules/repofiles/temp_repo.go

5 years agoAdd check for empty set when dropping indexes during migration (#8475)
guillep2k [Sat, 12 Oct 2019 05:31:12 +0000 (02:31 -0300)]
Add check for empty set when dropping indexes during migration (#8475)

5 years agoEnsure Request Body Readers are closed in LFS server (#8454) (#8459)
zeripath [Fri, 11 Oct 2019 16:11:06 +0000 (17:11 +0100)]
Ensure Request Body Readers are closed in LFS server (#8454) (#8459)

5 years agoEnsure that LFS files are relative to the LFS content path (#8455) (#8458)
zeripath [Fri, 11 Oct 2019 12:41:55 +0000 (13:41 +0100)]
Ensure that LFS files are relative to the LFS content path (#8455) (#8458)

5 years agoChangelog for v1.9.4 (#8422) v1.9.4
6543 [Tue, 8 Oct 2019 17:54:58 +0000 (19:54 +0200)]
Changelog for v1.9.4 (#8422)

* changelog

* Update CHANGELOG.md

We ned to revert this then ...

Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years agoRevert "[Backport] Fix issues/pr list broken when there are man… (#8425)
Lauris BH [Tue, 8 Oct 2019 16:12:41 +0000 (19:12 +0300)]
Revert "[Backport] Fix issues/pr list broken when there are man… (#8425)

This reverts commit 0ea4b786cb99054a381f3005f11f4cf413214617.

5 years ago[Backport] Fix issues/pr list broken when there are many repositories (#8409) (#8418)
6543 [Tue, 8 Oct 2019 11:35:00 +0000 (13:35 +0200)]
[Backport] Fix issues/pr list broken when there are many repositories (#8409) (#8418)

* Fix issues/pr list broken when there are many repositories (#8409)

* fix issues/pr list broken when there are many repositories

* remove unused codes

* fix counting error on issues/prs

* keep the old logic

* fix panic

* fix tests

* rm unused import

5 years agofix bug when migrating a private repository (#7917) (#8403)
6543 [Mon, 7 Oct 2019 04:58:35 +0000 (06:58 +0200)]
fix bug when migrating a private repository (#7917) (#8403)

5 years agoChange general form binding to gogs form (#8334) (#8402)
6543 [Mon, 7 Oct 2019 04:20:07 +0000 (06:20 +0200)]
Change general form binding to gogs form (#8334) (#8402)

5 years agofeat: highlight issue references with : (#8101) (#8404)
6543 [Mon, 7 Oct 2019 03:41:46 +0000 (05:41 +0200)]
feat: highlight issue references with : (#8101) (#8404)

* feat: highlight issue references with :

e.g. #1287: my commit msg
e.g. ABC-1234: my commit msg

* ref: update model regex to consistent with issueNumericPattern

* test: check highlight issue with : in commits messages

5 years agoFix milestone num_issues (#8221) (#8400)
6543 [Mon, 7 Oct 2019 03:03:43 +0000 (05:03 +0200)]
Fix milestone num_issues (#8221) (#8400)

* fix milestone num_issues

* update missing completeness

* only update milestone closed number when closed issue is assigned a new milestone or clear milestone

* fix tests

* fix update milestone num

* fix completeness calculate

* make completeness calucation more clear

5 years agoFix editor commit to new branch if PR disabled (#8375) (#8401)
6543 [Mon, 7 Oct 2019 01:28:18 +0000 (03:28 +0200)]
Fix editor commit to new branch if PR disabled (#8375) (#8401)

5 years agoAllow users with explicit read access to give approvals (#8398)
guillep2k [Sun, 6 Oct 2019 20:52:25 +0000 (17:52 -0300)]
Allow users with explicit read access to give approvals (#8398)

5 years agofix version-validation (because of 1.12 -> 1.13 switch) (#8389)
6543 [Sun, 6 Oct 2019 04:10:47 +0000 (06:10 +0200)]
fix version-validation (because of 1.12 -> 1.13 switch) (#8389)

* fix depenedency

* make vendor first

5 years agoBackport of commit status fixes in PR #8316 and PR #8321 to v1.9 (#8339)
Elias Norberg [Tue, 1 Oct 2019 17:16:45 +0000 (19:16 +0200)]
Backport of commit status fixes in PR #8316 and PR #8321 to v1.9 (#8339)

* Use correct index when fetching commit status

Signed-off-by: Elias Norberg <elias@aisle.se>
* Compare against base repo to avoid mismatch when merging from fork

Signed-off-by: Elias Norberg <elias@aisle.se>
* Fix pull request commit status in user dashboard list

5 years agoFix API for edit and delete release attachment (#8290)
David Svantesson [Thu, 26 Sep 2019 13:16:47 +0000 (15:16 +0200)]
Fix API for edit and delete release attachment (#8290)

* Add logging for when user requested attachment doesn't belong to the specified release.

* Fix API to use correct variable for release asset (attachment)

5 years agoFix assets on release webhook (#8283)
Daniel Fonseca de Lira [Wed, 25 Sep 2019 19:50:54 +0000 (16:50 -0300)]
Fix assets on release webhook (#8283)

5 years agoFix release API URL generation (#8239)
Daniel Fonseca de Lira [Thu, 19 Sep 2019 15:15:19 +0000 (12:15 -0300)]
Fix release API URL generation (#8239)

5 years agoAllow registration when button is hidden (#8238)
guillep2k [Thu, 19 Sep 2019 08:58:47 +0000 (05:58 -0300)]
Allow registration when button is hidden (#8238)

5 years agoMS Teams webhook misses commit messages (#8225)
Bjoern Petri [Wed, 18 Sep 2019 08:51:13 +0000 (10:51 +0200)]
MS Teams webhook misses commit messages (#8225)

The current webhook just shows the amount of commits, but misses the actual commit description. While the code is actually there to include the description, it is just not included.

Signed-off-by: Bjoern Petri <bjoern.petri@sundevil.de>
5 years agoFix data race (#8206)
Mura Li [Tue, 17 Sep 2019 09:40:28 +0000 (17:40 +0800)]
Fix data race (#8206)

* Fix data race

* Fix data race in modules/log

* Make the scope of lock finner-grained

* Use syc.Map

* Fix missing change in the test

* Do not export LoggerMap

5 years agoFix team user api (#8172) (#8188)
Lunny Xiao [Tue, 17 Sep 2019 03:23:40 +0000 (11:23 +0800)]
Fix team user api (#8172) (#8188)

* fix team user api

* fix tests

* fix api

* fix team user api

* change user convert

* fix tests

* fix tests

5 years agoFix pull merge 500 error caused by git-fetch breaking behaviors (#8194)
Mura Li [Mon, 16 Sep 2019 17:27:05 +0000 (01:27 +0800)]
Fix pull merge 500 error caused by git-fetch breaking behaviors (#8194)

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