- 15 Sep, 2021 2 commits
-
-
qwerty287 authored
Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
zeripath <art27@cantab.net> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
GiteaBot authored
-
- 14 Sep, 2021 5 commits
-
-
Lunny Xiao authored
-
KN4CK3R authored
This PR adds a `ListOptions` type which is not paged but uses absolute values. It is implemented as discussed in Discord. Extracted from #16510 to clean that PR.
-
zeripath authored
When converting repositories from forks to normal the root NumFork needs to be decremented too. Fix #17026 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
zeripath authored
The rollback functionality in services/repository/repository.go:ForkRepository is incorrect and could lead to a deadlock as it uses DeleteRepository to delete the rolled-back repository - a function which creates its own transaction. This PR adjusts the rollback function to only use RemoveAll as any database changes will be automatically rolled-back. It also handles panics and adjusts the Close within WithTx to ensure that if there is a panic the session will always be closed. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
zeripath authored
Often when handling problems it is not clear which configuration file Gitea is using. This PR simply ensures that the configuration file is emitted. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 13 Sep, 2021 2 commits
-
-
zeripath authored
Update to latest go-chi/session where the NewManager causes a new Provider instantiation instead of reconfiguring an old one. (https://gitea.com/go-chi/session/pulls/1) The NewManager call is now concurrency safe and would allow live reconfiguration in future but for now this PR simply fixes an intermittent "data-race" detected in our tests. (See https://drone.gitea.io/go-gitea/gitea/43900/2/14 ) Related #17027 Related #1441 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
GiteaBot authored
-
- 12 Sep, 2021 5 commits
-
-
Alexey 〒erentyev authored
Signed-off-by:
Alexey Terentyev <axifnx@gmail.com>
-
zeripath authored
* Use common sessioner for API and Web Instead of creating separate sessioner and doubly initialising the provider just use the same sessioner for the API and Web routes. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
Jimmy Praet authored
Removed unused variable passed to mail.link_not_working_do_paste Co-authored-by:
6543 <6543@obermui.de>
-
Tchoupinax authored
-
GiteaBot authored
-
- 11 Sep, 2021 2 commits
-
-
Jimmy Praet authored
Fixes #16381 Note that changes to unprotected files via the web editor still cannot be pushed directly to the protected branch. I could easily add such support for edits and deletes if needed. But for adding, uploading or renaming unprotected files, it is not trivial. * Extract & Move GetAffectedFiles to modules/git
-
GiteaBot authored
-
- 10 Sep, 2021 6 commits
-
-
zeripath authored
If there is an error when performing the admin or restricted filter search ensure that the filter and the userDN are reported. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
65 43 authored
* Make GetTags() api similar to GetBranches() * Use it for Tag/Release page
-
zeripath authored
This PR adds a setting to OAuth and OpenID login sources to allow the source to skip local 2FA authentication. Fix #13939 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
65 43 authored
close #8028
-
Romain authored
* Add "new issue" button on project
-
zeripath authored
When the external context is cancelled it is possible for the GitLogReader to not itself be Closed. This PR does three things: 1. Instead of adding a plain defer it wraps the `g.Close` in a func as `g` may change. 2. It adds the missing explicit g.Close - although the defer fix makes this unnecessary. 3. It passes down the external context as the base context for the GitLogReader meaning that the cancellation of the external context will pass down automatically. Fix #17007 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 09 Sep, 2021 5 commits
-
-
zeripath authored
Replaces #16262 Replaces #16250 Replaces #14833 This PR first implements a `git check-attr` pipe reader - using `git check-attr --stdin -z --cached` - taking account of the change in the output format in git 1.8.5 and creates a helper function to read a tree into a temporary index file for that pipe reader. It then wires this in to the language stats helper and into the git diff generation. Files which are marked generated will be folded by default. Fixes #14786 Fixes #12653
-
wxiaoguang authored
* doc: Upgrade from an old Gitea * update backup steps * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
delvh <dev.lh@web.de> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
delvh <dev.lh@web.de> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
delvh <dev.lh@web.de> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
delvh <dev.lh@web.de> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
delvh <dev.lh@web.de> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
delvh <dev.lh@web.de> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
delvh <dev.lh@web.de> * update backup tips * update table header * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
silverwind <me@silverwind.io> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
silverwind <me@silverwind.io> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
techknowlogick <matti@mdranta.net> * Update docs/content/doc/upgrade/from-gitea.en-us.md Co-authored-by:
techknowlogick <matti@mdranta.net> * Update from-gitea.en-us.md * Update from-gitea.en-us.md * Update from-gitea.en-us.md * Update from-gitea.en-us.md * Update from-gitea.en-us.md * Update from-gitea.en-us.md * Update from-gitea.en-us.md Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
silverwind <me@silverwind.io> Co-authored-by:
techknowlogick <matti@mdranta.net> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
KN4CK3R authored
Currently the svg minifier (`make svg`) rewrites all `id` and `class` attributes in svg files. Every file gets the ids `a, b, ...`. If multiple svgs with ids are used on a page these ids are conflicting and the results are broken images. | minified ids | unique ids | | - | - | |  |  | This PR adds a prefix (the filename) to every id/class. Follow up problem: Because we embed svg images there are duplicated ids if one svg image is used multiple times on a page. As those ids refer to the same content it may be no real problem because browser handle that fine.
-
65 43 authored
-
GiteaBot authored
-
- 08 Sep, 2021 7 commits
-
-
a1012112796 authored
fix a samll nit for agit `force-push` error response Signed-off-by:
a1012112796 <1012112796@qq.com>
-
Lunny Xiao authored
Fix #16986, #16152
-
Hakermann420 authored
* translated the rest of index.de-de.md to german * fixed typo in german locale activate_account email * fixed typo in german doc/content/page/index.md * Update docs/content/page/index.de-de.md Co-authored-by:
delvh <dev.lh@web.de> * commited sugesstions Co-authored-by:
delvh <dev.lh@web.de> * commited sugesstions Co-authored-by:
delvh <dev.lh@web.de> * commited sugesstions Co-authored-by:
delvh <dev.lh@web.de> * revert locale change Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
6543 <6543@obermui.de> Co-authored-by:
zeripath <art27@cantab.net>
-
65 43 authored
if AllowedUserVisibilityModes allow only public & limited, and orgs can be private, a user can create a repo to that organisation whitch will result in an update of the user. On this call the user is validaten and will be rejected since private is not allowed, but its not an user its an valid org ... Co-authored-by:
Alexey 〒erentyev <axifnx@gmail.com>
-
Lunny Xiao authored
When create a new issue or comment and paste/upload an attachment/image, it will not assign an issue id before submit. So if user give up the creating, the attachments will lost key feature and become dirty content. We don't know if we need to delete the attachment even if the repository deleted. This PR add a repo_id in attachment table so that even if a new upload attachment with no issue_id or release_id but should have repo_id. When deleting a repository, they could also be deleted. Co-authored-by:
6543 <6543@obermui.de>
-
65 43 authored
* Update TestOneDevDownloadRepo since OneDev api changed * Use test functions for migrations
-
silverwind authored
CSS-only tooltips suffer various issues with positioning and there was only one single instance of them in the templates. Replace that instance with a regular popup and exclude these `data-tooltip` styles from the Fomantic build.
-
- 07 Sep, 2021 2 commits
-
-
65 43 authored
Rename`[repository]` `DISABLE_MIRRORS` to `[mirror]` `DISABLE_NEW_PULL` and add `ENABLED` and `DISABLE_NEW_PUSH` with the below meanings: - `ENABLED`: **true**: Enables the mirror functionality. Set to **false** to disable all mirrors. - `DISABLE_NEW_PULL`: **false**: Disable the creation of **new** mirrors. Pre-existing mirrors remain valid. - `DISABLE_NEW_PUSH`: **false**: Disable the creation of **new** push mirrors. Pre-existing mirrors remain valid. Co-authored-by:
zeripath <art27@cantab.net> Co-authored-by:
delvh <dev.lh@web.de>
-
GiteaBot authored
-
- 06 Sep, 2021 4 commits
-
-
silverwind authored
* Add Cache-Control to avatar redirects This does seem to do the trick to make the Avatar redirects cachable in Chrome. In Firefox, it does not seem to work, thought and I found no way to suppress the requests to the original URLs, I even tried setting an Etag to no avail. Related discussion in https://github.com/go-gitea/gitea/issues/16964 . Co-authored-by:
zeripath <art27@cantab.net>
-
65 43 authored
* Update TODO in migrations * Resolve TODO: enable pagination on GiteaDownloader.GetComments()
-
Lunny Xiao authored
* Fix storage Iterate bug and Add storage doctor to delete garbage attachments * Close object when used
-
a1012112796 authored
Signed-off-by:
a1012112796 <1012112796@qq.com>
-