aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ensure Written is set in GZIP ProxyResponseWriter (#9018) (#9026)release/v1.9zeripath2019-11-151-10/+43
| | | | | | | | 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.
* Changelog for 1.9.6 (#8967)v1.9.6John Olheiser2019-11-131-0/+8
| | | | | | * Changelog for 1.9.6 Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add Close() method to gogitRepository (#8901) (#8958)zeripath2019-11-1371-31/+275
| | | | | | | | | | | 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
* Update Github Migration Test (#8946)mrsdizzie2019-11-131-2/+2
| | | | Small fix for test on 1.9 since #8938 can't be easily back ported to this branch.
* Fix issue with user.fullname (#8904)zeripath2019-11-101-3/+5
|
* Update Github migration test (#8897)guillep2k2019-11-091-6/+0
| | | | | | | 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...
* fix 500 when edit hook (#8782) (#8790)Lunny Xiao2019-11-021-0/+5
|
* Allow to merge if file path contains " or \ (#8629) (#8772)zeripath2019-11-011-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Changelog 1.9.5 (#8753)v1.9.5John Olheiser2019-10-301-0/+24
| | | | | * 1.9.5 Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [Backport] [Fix] milestone close timestamp (#8728) (#8731)65432019-10-291-0/+5
| | | | | | | | | | * [Fix] milestone close timestamp (#8728) * BugFix: Update closed_date_unix colum on milestone table on close * use go standart time lib * make backport work!
* Fix deadline on update issue or PR via API (#8699)David Svantesson2019-10-282-14/+12
|
* make call createMilestoneComment on newIssue func (#8678) (#8682)jaqra2019-10-251-0/+4
| | | | | * make call createMilestoneComment on newIssue func * make OldMilestoneID 0 instead of -1
* Revert "API should follow RequireSignInView (#8654) (#8661)" (#8674)Lunny Xiao2019-10-241-8/+1
| | | This reverts commit ffff835b7338a25be96df8747a336f07afc49db2.
* Fix 500 when getting user as unauthenticated user (#8662)Monty Taylor2019-10-241-1/+1
| | | | | | | | 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.
* API should follow RequireSignInView (#8654) (#8661)Lunny Xiao2019-10-241-1/+8
|
* Hide some user information via API if user have no enough permission (#8655) ↵Lunny Xiao2019-10-242-5/+4
| | | | | | | (#8658) * Hide some user information via API if user have no enough permission * fix test
* Use AppSubUrl for more redirections (#8647) (#8652)zeripath2019-10-233-3/+3
| | | | | | Partial backport without changes to locale files. Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template Fixes /explore and organisation redirection
* Add SubURL to redirect path (#8632) (#8634) (#8640)John Olheiser2019-10-231-1/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update heatmap fixtures to restore tests (#8615) (#8617)zeripath2019-10-213-4/+4
| | | | * Update heatmap fixtures to restore tests * Add hint to check the fixture age on fail
* Fix #8582 by handling empty repos (#8587) (#8593)65432019-10-192-0/+19
| | | | | | | | | * Fix #8582 by handling empty repos Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix tests Signed-off-by: Jonas Franz <info@jonasfranz.software>
* fix bug pull request files will be broken if head repo was transfered to ↵Lunny Xiao2019-10-181-0/+7
| | | | another user or orgnization (#8571)
* Add missed close in ServeBlobLFS (#8527) (#8543)zeripath2019-10-171-0/+5
|
* Fixes #8369: Create .ssh dir as necessary (#8486) (#8489)zeripath2019-10-131-0/+24
| | | | | | | | | * 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
* IsBranchExist: return false if provided name is empty (#8485) (#8492)zeripath2019-10-131-2/+8
| | | | | * IsBranchExist: return false if provided name is empty * Ensure that the reference returned is actually of a valid type
* Backport: Ignore mentions for users with no access (#8395) (#8484)guillep2k2019-10-135-40/+175
| | | | | | * Ignore mentions for users with no access * Fix fmt
* Restore functionality for early gits (#7775) (#8476)zeripath2019-10-1312-66/+223
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add check for empty set when dropping indexes during migration (#8475)guillep2k2019-10-121-3/+5
|
* Ensure Request Body Readers are closed in LFS server (#8454) (#8459)zeripath2019-10-112-5/+15
|
* Ensure that LFS files are relative to the LFS content path (#8455) (#8458)zeripath2019-10-111-2/+1
|
* Changelog for v1.9.4 (#8422)v1.9.465432019-10-081-0/+26
| | | | | | | | | | * changelog * Update CHANGELOG.md We ned to revert this then ... Co-Authored-By: Lauris BH <lauris@nix.lv>
* Revert "[Backport] Fix issues/pr list broken when there are man… (#8425)Lauris BH2019-10-085-110/+178
| | | This reverts commit 0ea4b786cb99054a381f3005f11f4cf413214617.
* [Backport] Fix issues/pr list broken when there are many repositories ↵65432019-10-085-178/+110
| | | | | | | | | | | | | | | | | | | | (#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
* fix bug when migrating a private repository (#7917) (#8403)65432019-10-071-1/+12
|
* Change general form binding to gogs form (#8334) (#8402)65432019-10-072-12/+9
|
* feat: highlight issue references with : (#8101) (#8404)65432019-10-064-3/+11
| | | | | | | | | | * 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
* Fix milestone num_issues (#8221) (#8400)65432019-10-073-41/+44
| | | | | | | | | | | | | | | * 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
* Fix editor commit to new branch if PR disabled (#8375) (#8401)65432019-10-073-5/+16
|
* Allow users with explicit read access to give approvals (#8398)guillep2k2019-10-063-3/+37
|
* fix version-validation (because of 1.12 -> 1.13 switch) (#8389)65432019-10-063-4/+4
| | | | | | * fix depenedency * make vendor first
* Backport of commit status fixes in PR #8316 and PR #8321 to v1.9 (#8339)Elias Norberg2019-10-013-7/+10
| | | | | | | | | | | | * 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
* Fix API for edit and delete release attachment (#8290)David Svantesson2019-09-261-2/+6
| | | | | | * Add logging for when user requested attachment doesn't belong to the specified release. * Fix API to use correct variable for release asset (attachment)
* Fix assets on release webhook (#8283)Daniel Fonseca de Lira2019-09-251-2/+4
|
* Fix release API URL generation (#8239)Daniel Fonseca de Lira2019-09-191-1/+1
|
* Allow registration when button is hidden (#8238)guillep2k2019-09-191-1/+1
|
* MS Teams webhook misses commit messages (#8225)Bjoern Petri2019-09-181-0/+1
| | | | | 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>
* Fix data race (#8206)Mura Li2019-09-173-20/+57
| | | | | | | | | | | | | | * 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
* Fix team user api (#8172) (#8188)Lunny Xiao2019-09-172-0/+45
| | | | | | | | | | | | | | | * fix team user api * fix tests * fix api * fix team user api * change user convert * fix tests * fix tests
* Fix pull merge 500 error caused by git-fetch breaking behaviors (#8194)Mura Li2019-09-161-1/+1
|
* [ssh] fix the config specification in the authorized_keys template (#8031) ↵Jakob Ackermann2019-09-161-2/+2
| | | | | | | | | (#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)
* [backport/v1.9] Fix reading git notes from nested trees (#8189)Filip Navara2019-09-1523-15/+59
| | | | | | | | | | | | | * 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