]>
source.dussan.org Git - gitea.git/log
GiteaBot [Sat, 6 Mar 2021 00:12:35 +0000 (00:12 +0000)]
[skip ci] Updated translations via Crowdin
John Olheiser [Fri, 5 Mar 2021 21:00:15 +0000 (15:00 -0600)]
Signed-off-by: jolheiser <john.olheiser@gmail.com> (#14898)
Lunny Xiao [Fri, 5 Mar 2021 15:17:32 +0000 (23:17 +0800)]
Fix bug when combine label comments (#14894)
* Fix bug when combine label comments
* Added some code comments
* More comments
zeripath [Fri, 5 Mar 2021 13:19:17 +0000 (13:19 +0000)]
Fix race in local storage (#14888)
LocalStorage should only put completed files in position
Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao [Fri, 5 Mar 2021 02:28:52 +0000 (10:28 +0800)]
When transfering repository and database transaction failed, rollback the renames (#14864)
Fix #14821
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Norwin [Thu, 4 Mar 2021 22:59:13 +0000 (22:59 +0000)]
Show private heatmap on profile to self & admins (#14881)
followup to #14080
6543 [Thu, 4 Mar 2021 18:27:54 +0000 (19:27 +0100)]
IsUserAllowedToUpdate ignore igonre if user is nil (#14885)
6543 [Thu, 4 Mar 2021 17:01:44 +0000 (18:01 +0100)]
[Docs] Fix how lfs data path is set (#14855)
* fix docs: lfs data path
* DEPRECATED note
* 已废弃
* better english sentence
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6543 [Thu, 4 Mar 2021 15:00:23 +0000 (16:00 +0100)]
Add changelog for v1.13.3 (#14877) (#14883)
* Add changelog for v1.13.3 (#14877)
Add changelog for v1.13.3
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <matti@mdranta.net>
* Update Docs
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <matti@mdranta.net>
a1012112796 [Thu, 4 Mar 2021 03:41:23 +0000 (11:41 +0800)]
Make manual merge autodetection optional and add manual merge as merge method (#12543)
* Make auto check manual merge as a chooseable mod and add manual merge way on ui
as title, Before this pr, we use same way with GH to check manually merge.
It good, but in some special cases, misjudgments can occur. and it's hard
to fix this bug. So I add option to allow repo manager block "auto check manual merge"
function, Then it will have same style like gitlab(allow empty pr). and to compensate for
not being able to detect THE PR merge automatically, I added a manual approach.
Signed-off-by: a1012112796 <1012112796@qq.com>
* make swager
* api support
* ping ci
* fix TestPullCreate_EmptyChangesWithCommits
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net>
* Apply review suggestions and add test
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net>
* fix build
* test error message
* make fmt
* Fix indentation issues identified by @silverwind
Co-authored-by: silverwind <me@silverwind.io>
* Fix tests and make manually merged disabled error on API the same
Signed-off-by: Andrew Thornton <art27@cantab.net>
* a small nit
* fix wrong commit id error
* fix bug
* simple test
* fix test
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath [Thu, 4 Mar 2021 02:57:01 +0000 (02:57 +0000)]
Move Bleve and Elastic code indexers to use a common cat-file --batch (#14781)
* Extract out the common cat-file batch calls
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Move bleve and elastic indexers to use a common cat-file --batch when indexing
Signed-off-by: Andrew Thornton <art27@cantab.net>
* move catfilebatch to batch_reader and rename to batch_reader.go
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath [Thu, 4 Mar 2021 01:25:30 +0000 (01:25 +0000)]
Add CORS config on to /login/oauth/access_token endpoint (#14850)
Fix #7204
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath [Thu, 4 Mar 2021 00:48:19 +0000 (00:48 +0000)]
Fix paging of file commit logs (#14831)
Unfortunately `git log revision ... --skip=x -- path` skips the number of commits
not the number of commits relating to the path.
This PR changes the function to have a reader that reads and skips the
necessary number of commits by hand instead.
Fix #8716
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
zeripath [Wed, 3 Mar 2021 22:44:30 +0000 (22:44 +0000)]
Add missing repo.projects unit into swagger (#14876)
Fix #14875
Signed-off-by: Andrew Thornton <art27@cantab.net>
GiteaBot [Wed, 3 Mar 2021 00:12:35 +0000 (00:12 +0000)]
[skip ci] Updated translations via Crowdin
Norwin [Tue, 2 Mar 2021 16:23:36 +0000 (16:23 +0000)]
Handle urls with trailing slash (#14852)
zeripath [Tue, 2 Mar 2021 13:07:01 +0000 (13:07 +0000)]
Make searching issues by keyword case insensitive on DB (#14848)
Most DBs apart from SQLite will use a default Collation that is not case insensitive.
This means that SearchIssuesByKeyword becomes case sensitive for db indexing - in
contrast to the bleve and elastic indexers.
This PR simply uses UPPER(...) to do the LIKE - and although it may be more efficient
to change collations this would be a non-trivial task.
Fix #13663
Signed-off-by: Andrew Thornton <art27@cantab.net>
GiteaBot [Tue, 2 Mar 2021 00:12:37 +0000 (00:12 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Mon, 1 Mar 2021 21:08:10 +0000 (21:08 +0000)]
Migrate to use jsoniter instead of encoding/json (#14841)
* Migrate to use jsoniter
* fix tests
* update gitea.com/go-chi/binding
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
zeripath [Mon, 1 Mar 2021 17:39:44 +0000 (17:39 +0000)]
When Deleting Repository only explicitly close PRs whose base is not this repository (#14823)
When Deleting Repository only explicitly close PRs whose base is not this repository
Fix #14775
Signed-off-by: Andrew Thornton <art27@cantab.net>
Paweł Bogusławski [Mon, 1 Mar 2021 14:33:05 +0000 (15:33 +0100)]
Organization removal confirmation using name not password (#14738)
* Organization removal confirmation using name not password
Gitea is asking for user password to confirm organization
removal so this operation cannot be done in systems with
SSO authentication (where no user passwords are used).
This mod changes the way gitea confirms organization
removal - user must enter organization name (not user
password) to confirm operation (similar to repository
removal confirmation).
Author-Change-Id: IB#
1107219
* Translation removed
Translation removed from PR - will be restored using Crowdin
after pull got merged.
Fixes: 95ddcdd8bd8097a952894556d42641d5ec269288
Related: https://github.com/go-gitea/gitea/pull/14738
Author-Change-Id: IB#
1107219
a1012112796 [Mon, 1 Mar 2021 12:14:17 +0000 (20:14 +0800)]
remove duplicate define of CheckAttribute() (#14837)
Signed-off-by: a1012112796 <1012112796@qq.com>
techknowlogick [Mon, 1 Mar 2021 04:57:58 +0000 (23:57 -0500)]
drone workspace path
techknowlogick [Mon, 1 Mar 2021 04:25:09 +0000 (23:25 -0500)]
drone workspace base
techknowlogick [Mon, 1 Mar 2021 03:43:55 +0000 (22:43 -0500)]
use gomod support w/ xgo (#14836)
6543 [Mon, 1 Mar 2021 00:47:30 +0000 (01:47 +0100)]
Repository transfer has to be confirmed, if user can not create repo for new owner (#14792)
* make repo as "pending transfer" if on transfer start doer has no right to create repo in new destination
* if new pending transfer ocured, create UI & Mail notifications
GiteaBot [Mon, 1 Mar 2021 00:12:52 +0000 (00:12 +0000)]
[skip ci] Updated translations via Crowdin
techknowlogick [Sun, 28 Feb 2021 23:08:33 +0000 (18:08 -0500)]
go1.16 (#14783)
zeripath [Sun, 28 Feb 2021 22:04:15 +0000 (22:04 +0000)]
Set HCaptchaSiteKey on Link Account pages (#14834)
When using HCaptcha on link account pages the site key needs to be passed
in. This PR ensures that HCaptchaSiteKey is set in the data.
Fix #14766
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
a1012112796 [Sun, 28 Feb 2021 19:57:45 +0000 (03:57 +0800)]
Create tag on ui (#13467)
Support create single tag directly
support create tag with message from create release ui
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
Jimmy Praet [Sun, 28 Feb 2021 18:24:00 +0000 (19:24 +0100)]
All organization members should be assignable as reviewer (#14262)
For public repos, all organization members should be assignable as reviewer
Co-authored-by: zeripath <art27@cantab.net>
a1012112796 [Sun, 28 Feb 2021 16:48:29 +0000 (00:48 +0800)]
add preview support for wiki editor when disable simpleMDE (#14757)
Signed-off-by: a1012112796 <1012112796@qq.com>
6543 [Sun, 28 Feb 2021 14:05:55 +0000 (15:05 +0100)]
Fix issue/pul sidebar (#14826)
zeripath [Sun, 28 Feb 2021 12:29:22 +0000 (12:29 +0000)]
Prevent use of double sub-path and incorrect asset path in manifest (#14827)
MakeAbsoluteAssetURL should just url join the static url prefix on to appurl
if it is not an absolute path - this is because StaticURLPrefix is an absolute
prefix not a relative prefix to the app sub url.
Fix #14422
Signed-off-by: Andrew Thornton <art27@cantab.net>
a1012112796 [Sun, 28 Feb 2021 10:46:21 +0000 (18:46 +0800)]
Remove pt-pt from doc config file (#14830)
Because it not has any content now. It's not necessary to
show this link on the footer.
Signed-off-by: a1012112796 <1012112796@qq.com>
6543 [Sun, 28 Feb 2021 07:54:12 +0000 (08:54 +0100)]
Fix missleading sentence (#14829)
GiteaBot [Sun, 28 Feb 2021 00:43:14 +0000 (00:43 +0000)]
[skip ci] Updated licenses and gitignores
zeripath [Sat, 27 Feb 2021 18:46:14 +0000 (18:46 +0000)]
Fix a couple of CommentAsPatch issues. (#14804)
* CutDiffAroundLine makes the incorrect assumption that `---` and `+++` always represent part of the header of a diff.
This PR adds a flag to its parsing to prevent this problem and adds a streaming parsing technique to CutDiffAroundLine using an io.pipe instead of just sending data to an unbounded buffer.
Fix #14711
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Handle unquoted comment patch files
When making comment patches unfortunately the patch does not always quote the filename
This makes the diff --git header ambiguous again.
This PR finally adds handling for ambiguity in to parse patch
Fix #14812
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add in testing for no error
There is no way currently for CutDiffAroundLine in this test to cause an
error however, it should still be tested.
Signed-off-by: Andrew Thornton <art27@cantab.net>
KN4CK3R [Sat, 27 Feb 2021 17:25:00 +0000 (18:25 +0100)]
Add Image Diff options in Pull Request Diff view (#14450)
Implemented GitHub style image diff
GiteaBot [Sat, 27 Feb 2021 00:19:24 +0000 (00:19 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Fri, 26 Feb 2021 03:20:58 +0000 (03:20 +0000)]
Disable broken OAuth2 providers at startup (#14802)
Instead of causing a log.Fatal, we should handle broken OAuth2
providers by disabling them.
Fix #8930
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
GiteaBot [Fri, 26 Feb 2021 00:19:27 +0000 (00:19 +0000)]
[skip ci] Updated translations via Crowdin
Mike L [Thu, 25 Feb 2021 12:35:43 +0000 (13:35 +0100)]
Fix dashboard UI bugs and more (#14767)
This PR fixes a few UI bugs I spontaneously encountered:
- Fixes emojis in repo titles getting head-cut and tail-cut in dashboard feed due to introduction of 1.25 em emojis at 1 em line-height, by simply using the original 1 3/7 em value of `semantic.css`
- Fixes regression (too long repo names should be capped to 70%) in #13828 due to flex children not respecting properties like `overflow: hidden;`, and removes a block of dead style code
- Follow-up to #14761, removes extraneous code for top navbar and correct right margin for Font Awesome
- Fixes color emphasis inversion in arc-green theme for top right buttons (edit, delete) on commit view boxes
6543 [Thu, 25 Feb 2021 06:13:44 +0000 (07:13 +0100)]
use gogs.ico to create a better svg for migration page (#14795)
GiteaBot [Thu, 25 Feb 2021 00:19:26 +0000 (00:19 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Wed, 24 Feb 2021 22:36:48 +0000 (23:36 +0100)]
Generate man pages (#13901)
* extend gitignore
* first working draft
* use docs subcomand
* rm config-sheet-sheet-2-man
Kyle D [Tue, 23 Feb 2021 19:21:44 +0000 (14:21 -0500)]
Add environment-to-ini to docker image (#14762)
* Add environment-to-app.ini routine
* Call environment-to-ini in docker setup scripts
* Automatically convert section vars to lower case to match documentation
* Remove git patch instructions
* Add env variable documentation to Install Docker
techknowlogick [Tue, 23 Feb 2021 03:55:35 +0000 (22:55 -0500)]
Exclude running docker build on cron tasks (#14778)
GiteaBot [Tue, 23 Feb 2021 00:19:34 +0000 (00:19 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Mon, 22 Feb 2021 23:16:02 +0000 (00:16 +0100)]
CI: translation update as cron task (#14774)
a1012112796 [Mon, 22 Feb 2021 20:17:51 +0000 (04:17 +0800)]
Add EasyMDE support for release content editor (#14744)
* Add easyMDE(simpleMDE) support for release content editor
Signed-off-by: a1012112796 <1012112796@qq.com>
a1012112796 [Mon, 22 Feb 2021 18:54:01 +0000 (02:54 +0800)]
fix a small nit (#14769)
GiteaBot [Mon, 22 Feb 2021 13:46:10 +0000 (13:46 +0000)]
[skip ci] Updated translations via Crowdin
techknowlogick [Mon, 22 Feb 2021 13:44:54 +0000 (08:44 -0500)]
build for only available darwin target (#14771)
Lunny Xiao [Mon, 22 Feb 2021 07:01:57 +0000 (15:01 +0800)]
Make release-linux archtectures via envs (#14184)
Lunny Xiao [Mon, 22 Feb 2021 03:57:41 +0000 (11:57 +0800)]
Fix repo-restore bug with poster not replaced (#14759)
* Fix restore bug
* Fix restore bug
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
a1012112796 [Mon, 22 Feb 2021 02:51:45 +0000 (10:51 +0800)]
Fix double alert in oauth2 application edit view (#14764)
Signed-off-by: a1012112796 <1012112796@qq.com>
a1012112796 [Mon, 22 Feb 2021 01:14:27 +0000 (09:14 +0800)]
fix link account ui (#14763)
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Kyle D [Sun, 21 Feb 2021 21:22:15 +0000 (16:22 -0500)]
Only for direct descendants of items (#14761)
GiteaBot [Sun, 21 Feb 2021 16:52:24 +0000 (16:52 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Sun, 21 Feb 2021 16:51:15 +0000 (00:51 +0800)]
Fix go get (#14758)
* Fix go get
* Fix default branch
Co-authored-by: 6543 <6543@obermui.de>
GiteaBot [Sun, 21 Feb 2021 10:00:43 +0000 (10:00 +0000)]
[skip ci] Updated translations via Crowdin
Bagas Sanjaya [Sun, 21 Feb 2021 09:59:31 +0000 (16:59 +0700)]
Add helper descriptions on new repo page (#14591)
* Add helper descriptions on new repo page
Add helpers for:
* repo description
* .gitignore
* license
* README
* default branch
* signature trust model
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
* Oops, rename trust_model_helper
To match similar helper.
trust_model_helper_intro -> trust_model_helper
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
GiteaBot [Sun, 21 Feb 2021 00:19:09 +0000 (00:19 +0000)]
[skip ci] Updated licenses and gitignores
GiteaBot [Sat, 20 Feb 2021 22:10:05 +0000 (22:10 +0000)]
[skip ci] Updated translations via Crowdin
gordon-- [Sat, 20 Feb 2021 22:08:58 +0000 (23:08 +0100)]
Heatmap days clickable (#13935)
* Heatmap days clickable
* Error handling
* Unselect filter
* better dayclick handler
* made linter happy
* clickable heatmap for profiles
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao [Sat, 20 Feb 2021 14:02:39 +0000 (22:02 +0800)]
Remove unused commit (#14741)
* Remove unused commit
* a small nit
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: a1012112796 <1012112796@qq.com>
GiteaBot [Sat, 20 Feb 2021 10:19:10 +0000 (10:19 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Sat, 20 Feb 2021 10:17:51 +0000 (11:17 +0100)]
Export LFS & TimeTracking function status (#14753)
GiteaBot [Sat, 20 Feb 2021 04:28:10 +0000 (04:28 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Sat, 20 Feb 2021 04:26:57 +0000 (04:26 +0000)]
Prevent endless loop if templates missing (#14752)
Since the chi upgrade if the templates are missing an endless loop will occur if
status/500.tmpl is missing.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Norwin [Fri, 19 Feb 2021 23:06:56 +0000 (23:06 +0000)]
stopwatch notif: check if timetracking is enabled (#14750)
fixes #14435
zeripath [Fri, 19 Feb 2021 21:36:43 +0000 (21:36 +0000)]
Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999)
Also removes some unnecessary uses of fmt.Sprintf and adds documentation
strings
Signed-off-by: Andrew Thornton <art27@cantab.net>
a1012112796 [Fri, 19 Feb 2021 18:58:11 +0000 (02:58 +0800)]
fix preview status switch button on wiki editr (#14742)
Signed-off-by: a1012112796 <1012112796@qq.com>
Ikko Ashimine [Fri, 19 Feb 2021 16:29:22 +0000 (01:29 +0900)]
[docs] Fix typo in command-line.en-us.md (#14746)
seperated -> separated
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
GiteaBot [Fri, 19 Feb 2021 15:46:38 +0000 (15:46 +0000)]
[skip ci] Updated translations via Crowdin
6543 [Fri, 19 Feb 2021 15:45:23 +0000 (16:45 +0100)]
Update golangci-lint v1.35.2 -> v1.37.0 (#14747)
Norwin [Fri, 19 Feb 2021 10:52:11 +0000 (10:52 +0000)]
Add UI to delete tracked times (#14100)
Co-authored-by: 6543 <6543@obermui.de>
GiteaBot [Fri, 19 Feb 2021 10:06:49 +0000 (10:06 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Fri, 19 Feb 2021 10:05:35 +0000 (10:05 +0000)]
Move the stopwatches to the eventsource stream (#14588)
Move the stopwatches to the eventsource stream
Use the /user/events eventsource to update the stopwatches
instead of polling /api/v1/user/stopwatches if the eventsource
is enabled.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao [Fri, 19 Feb 2021 06:24:51 +0000 (14:24 +0800)]
Fix misleading word on delete repositories' archives (#14737)
GiteaBot [Fri, 19 Feb 2021 00:41:31 +0000 (00:41 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Fri, 19 Feb 2021 00:40:17 +0000 (08:40 +0800)]
Fix when a commit not found returned 500 (#14732)
Co-authored-by: Lauris BH <lauris@nix.lv>
Jacob Hrbek [Thu, 18 Feb 2021 15:39:04 +0000 (15:39 +0000)]
models/repo: Fix typo in comment (#14731)
* models/repo: Fix typo in comment
* another typo
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot [Thu, 18 Feb 2021 14:48:40 +0000 (14:48 +0000)]
[skip ci] Updated translations via Crowdin
Jacob Hrbek [Thu, 18 Feb 2021 14:47:23 +0000 (14:47 +0000)]
routers/routes/web: Fix typo in comment (#14729)
wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf [Thu, 18 Feb 2021 11:28:07 +0000 (12:28 +0100)]
Issue template addition: Are you using Gitea behind CloudFlare? (#14098)
* chore: are you using Gitea behind CloudFlare
since more often than not CF appears to serve stale cache and cause
troubles, I'd argue it might be helpful to ask about it in this here
issue template
* implement suggestion: change question to comment
* as per @techknowlogick's suggestion
* chore: edit comment
* implement @mrsdizzie's suggestion
* as the comment grows, rather span multiple lines
* Gitea --> gitea to match case used in the rest of the template
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6543 [Thu, 18 Feb 2021 08:25:35 +0000 (09:25 +0100)]
[API] Add Restricted Field to User (#14630)
* Expose Restricted field for User
* Add Option to Change Restricted on User via adminEditUser API
* Add test who change restricted & test if it changed it ...
* make generate-swagger
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
techknowlogick [Thu, 18 Feb 2021 02:48:12 +0000 (21:48 -0500)]
remove outdated notice in makefile (#14720)
Co-authored-by: 6543 <6543@obermui.de>
Jimmy Praet [Thu, 18 Feb 2021 02:45:49 +0000 (03:45 +0100)]
#14699 Make branch names in PR description clickable (#14716)
zeripath [Thu, 18 Feb 2021 01:32:14 +0000 (01:32 +0000)]
Remove NULs byte arrays passed to PostProcess (#14587)
PostProcess is supposed to be parsing and handling HTML
fragments, but on fuzzing it appears that there is a weird
issue with NUL elements that could cause a memory address
error in downstream libraries.
The simplest solution is to strip out the weird NULs - they
should not be there in any case and would be stripped out
anyway.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao [Thu, 18 Feb 2021 00:36:49 +0000 (08:36 +0800)]
Fix github download on migration (#14703)
* Fix github download on migration
* Use Context for Client
Co-authored-by: zeripath <art27@cantab.net>
zeripath [Wed, 17 Feb 2021 21:32:25 +0000 (21:32 +0000)]
Reduce calls to git cat-file -s (#14682)
* Reduce calls to git cat-file -s
There are multiple places where there are repeated calls to git cat-file
-s due to the blobs not being created with their size.
Through judicious use of git ls-tree -l and slight adjustments to the
indexer code we can avoid a lot of these calls.
* simplify by always expecting the long format
* Also always set the sized field and tell the indexer the update is sized
zeripath [Wed, 17 Feb 2021 19:32:47 +0000 (19:32 +0000)]
Use cat-file --batch in GetLanguageStats (#14685)
* Use cat-file --batch in GetLanguageStats
This PR moves to using a single cat-file --batch in GetLanguageStats
significantly reducing the number of processes spawned during language stat
processing.
Signed-off-by: Andrew Thornton <art27@cantab.net>
* placate lint
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update modules/git/repo_language_stats_nogogit.go
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6543 [Wed, 17 Feb 2021 03:47:24 +0000 (04:47 +0100)]
Vendor Update (#14696)
* github.com/yuin/goldmark v1.3.1 -> v1.3.2
* github.com/xanzy/go-gitlab v0.42.0 -> v0.44.0
* github.com/prometheus/client_golang v1.8.0 -> v1.9.0
* github.com/minio/minio-go v7.0.7 -> v7.0.9
* github.com/lafriks/xormstore v1.3.2 -> v1.4.0
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot [Tue, 16 Feb 2021 22:38:34 +0000 (22:38 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Tue, 16 Feb 2021 22:37:20 +0000 (22:37 +0000)]
Add Password Algorithm option to install page (#14701)
Add Password Algorithm option to install page
Fix #14674
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
zeripath [Tue, 16 Feb 2021 15:39:45 +0000 (15:39 +0000)]
Restore detection of branches are equal on compare page (#14586)
Somehow the test for detecting if branches are equal broke
this PR restores this functionality.
Fix #14502
Signed-off-by: Andrew Thornton <art27@cantab.net>
GiteaBot [Tue, 16 Feb 2021 03:04:48 +0000 (03:04 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Tue, 16 Feb 2021 03:03:32 +0000 (03:03 +0000)]
Add fullTextSearch to dropdowns by default (#14694)
This PR adds `fullTextSearch: 'exact'` to most dropdown
invocations meaning that if there is a search box for the
dropdown it will automatically do a fullTextSearch looking
for the provided fragment instead of starting at the beginning
We should consider changing other places that use
`fullTextSearch: true` to `'exact'` because these will be using a
fuzzy-textual search that doesn't necessarily return the
expected results.
Fix #14689
Signed-off-by: Andrew Thornton <art27@cantab.net>