- 06 Dec, 2022 1 commit
-
-
zeripath authored
Backport #21902 Although git does expect that author names should be of the form: `NAME <EMAIL>` some users have been able to create commits with: `<EMAIL>` Fix #21900 Signed-off-by:
Andrew Thornton <art27@cantab.net> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
- 05 Dec, 2022 1 commit
-
-
6543 authored
Backport #21787 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
- 04 Dec, 2022 1 commit
-
-
Lunny Xiao authored
Fix #21910 Backport #21921 Co-authored-by:
KN4CK3R <admin@oldschoolhack.me> Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-
- 24 Nov, 2022 2 commits
-
-
Xinyu Zhou authored
Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562) (#21927) Backport #21562 Signed-off-by:
Xinyu Zhou <i@sourcehut.net> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
Xinyu Zhou authored
Backport #21884 Committer avatar rendered by `func AvatarByEmail` are not vertical align as `func Avatar` does. - Replace literals `ui avatar` and `ui avatar vm` with the constant `DefaultAvatarClass` Signed-off-by:
Xinyu Zhou <i@sourcehut.net>
-
- 20 Nov, 2022 2 commits
-
-
KN4CK3R authored
Backport #21833
-
KN4CK3R authored
Backport of #21849 Co-authored-by:
Lauris BH <lauris@nix.lv>
-
- 18 Nov, 2022 1 commit
-
-
Gusted authored
- Backport #21856 - It's possible that the `user_redirect` table contains a user id that no longer exists. - Delete a user redirect upon deleting the user. - Add a check for these dangling user redirects to check-db-consistency.
-
- 14 Nov, 2022 1 commit
-
-
zeripath authored
When backporting #20902 in #21058 there was a slight misbackport. It was missed that we needed to remove the global command option before setting the settings. Fix #21805 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 13 Nov, 2022 3 commits
-
-
zeripath authored
Backport #21791 There was a bug introduced in #21352 due to a change of behaviour caused by #19280. This causes a panic on running the default doctor checks because the panic introduced by #19280 assumes that the only way opts.StdOut and opts.Stderr can be set in RunOpts is deliberately. Unfortunately, when running a git.Command the provided RunOpts can be set, therefore if you share a common set of RunOpts these two values can be set by the previous commands. This PR stops using common RunOpts for the commands in that doctor check but secondly stops RunCommand variants from changing the provided RunOpts. Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
Gusted authored
- Backport #21792 - Update the crypto dependency to include https://github.com/golang/crypto/commit/6fad3dfc18918c2ac9c112e46b32473bd2e5e2f9 - Resolves #17798 Co-authored-by:
John Olheiser <john.olheiser@gmail.com>
-
Jason Song authored
Backport #21720. Fix #20921. The `ctx.Repo.GitRepo` has been used in deleting issues when the issue is a PR. Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
Lauris BH <lauris@nix.lv>
-
- 11 Nov, 2022 2 commits
-
-
silverwind authored
-
Xinyu Zhou authored
Backport #21352 Due to a bug in presumably an older version of Gitea, multiple of my repositories still have their HEADs pointing to a `master` branch while the default branch on the UI is listed as `main`. This adds a `gitea doctor` command that will fix all of the HEAD references for repos when they're not synchronized with the default branch in the DB. This will help with cloning to ensure that git automatically checks out the right branch, instead of a nonexistent one. Note: I'm not sure if I actually need to do more other than add a file here. Will try testing this out on my server soon. Co-authored-by:
Clar Fon <15850505+clarfonthey@users.noreply.github.com> Co-authored-by:
zeripath <art27@cantab.net> Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 10 Nov, 2022 3 commits
-
-
wxiaoguang authored
Backport #21764 Some database migrations depend on the git module.
-
Jason Song authored
Backport #21731. Fix #21698. Set the last login time to the current time when activating the user successfully. Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
Xinyu Zhou authored
Backport #21597 Related: * https://github.com/go-gitea/gitea/pull/21596#issuecomment-1291450224 There was a bug when switching language by AJAX: the irrelevant POST requests were processed by the target page's handler. Now, use GET instead of POST. The GET requests should be harmless. Co-authored-by:
delvh <dev.lh@web.de> Co-authored-by:
Jason Song <i@wolfogre.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
- 09 Nov, 2022 3 commits
-
-
Wayne Starr authored
Backport (#21708) This addresses #21707 and adds a second package test case for a non-semver compatible version (this might be overkill though since you could also edit the old package version to have an epoch in front and see the error, this just seemed more flexible for the future). Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-
Wayne Starr authored
Backport (#21568) This PR fixes issue #21567 allowing for package tarball URLs to match the upstream registry (and GitLab/JFrog Artifactory URLs). It uses a regex to parse the filename (which contains the NPM version) and does a fuzzy search to pull it out. The regex was built/expanded from http://json.schemastore.org/package, https://github.com/Masterminds/semver, and https://docs.npmjs.com/cli/v6/using-npm/semver and is testable here: https://regex101.com/r/OydBJq/5 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
Wayne Starr authored
Backport (#21690) Fixes #21683 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
KN4CK3R <admin@oldschoolhack.me>
-
- 01 Nov, 2022 1 commit
-
-
zeripath authored
Backport #21646 A bug was introduced in #17865 where filepath.Join is used to join putative unadopted repository owner and names together. This is incorrect as these names are then used as repository names - which shoud have the '/' separator. This means that adoption will not work on Windows servers. Fix #21632 Signed-off-by:
Andrew Thornton <art27@cantab.net>
-
- 30 Oct, 2022 1 commit
-
-
Jason Song authored
Backport #21619 . A patch to #17335. Just like AppPath, Gitea writes its own CustomConf into git hook scripts too. If Gitea's CustomConf changes, then the git push may fail. Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
techknowlogick <techknowlogick@gitea.io>
-
- 28 Oct, 2022 1 commit
-
-
KN4CK3R authored
Backport of #21580 Co-authored-by:
Lauris BH <lauris@nix.lv> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 27 Oct, 2022 2 commits
-
-
KN4CK3R authored
Backport of #21593 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
Xinyu Zhou authored
Backport #21540 At the moment, If admin disable Packages, still show the Packages on the admin dashboard. This patch added a check to hide the Packages entry.
-
- 26 Oct, 2022 2 commits
-
-
Lunny Xiao authored
backport #21557
-
Ashley Nelson authored
Backports #21459 When actions besides "delete" are performed on issues, the milestone counter is updated. However, since deleting issues goes through a different code path, the associated milestone's count wasn't being updated, resulting in inaccurate counts until another issue in the same milestone had a non-delete action performed on it. I verified this change fixes the inaccurate counts using a local docker build. Co-authored-by:
6543 <6543@obermui.de>
-
- 25 Oct, 2022 2 commits
-
-
KN4CK3R authored
Backport of #21504 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
eleith authored
backport of #21372 for v1.17.4 ------------------- npm package.json supports binary packaging: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#bin the npm registry documents that the binary references will be attached to the abbreviated version object: https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-version-object unfortunately their api documentation leaves this out: https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-version-objectdoc which is likely to be the reason this was left out in gitea's initial implementation this response is critical for npm to install the binary in the .bin folder so as to be included on the users default bin path, resulting in immediate access to any binaries provided by the package i have tested upload and installing through npm and can confirm the npm registry now responds with bin in the version metadata and results in the binary being available after install. this fixes https://github.com/go-gitea/gitea/issues/21303 Co-authored-by:
eleith <online-github@eleith.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
- 24 Oct, 2022 4 commits
-
-
Paweł Bogusławski authored
Backport #21358 `SessionUser` should be protected against passing `sess` = `nil` to avoid ``` PANIC: runtime error: invalid memory address or nil pointer dereference ``` in https://github.com/go-gitea/gitea/pull/18452/files#diff-a215b82aadeb8b4c4632fcf31215dd421f804eb1c0137ec6721b980136e4442aR69 after upgrade from gitea v1.16 to v1.17. Related: https://github.com/go-gitea/gitea/pull/18452
-
Hubert Wawrzyńczyk authored
Backport of #21409 Co-authored-by:
techknowlogick <techknowlogick@gitea.io> Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
KN4CK3R authored
Backport of #21531 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
Lunny Xiao authored
backport #21556, Fix #19698
-
- 22 Oct, 2022 1 commit
-
-
silverwind authored
Backport #21520 Added checks for logged user token. Some builds fail at unrelated tests, due to missing token. Co-authored-by:
Vladimir Yakovlev <nagos@inbox.ru> Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
- 21 Oct, 2022 1 commit
-
-
Lunny Xiao authored
Fix #6318, backport #21519 Co-authored-by:
zeripath <art27@cantab.net> Co-authored-by:
zeripath <art27@cantab.net>
-
- 20 Oct, 2022 1 commit
-
-
delvh authored
When a PR reviewer reviewed a file on a commit that was later gc'ed, they would always get a `500` response from then on when loading the PR. This PR simply ignores that error and instead marks all files as unchanged. This approach was chosen as the only feasible option without diving into **a lot** of error handling. Fixes #21392 Backport of #21487 Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com>
-
- 19 Oct, 2022 1 commit
-
-
silverwind authored
Enable [`automaticLayout`](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IDiffEditorOptions.html#automaticLayout) for monaco so it can reflow itself. Fixes: https://github.com/go-gitea/gitea/issues/21508
-
- 18 Oct, 2022 1 commit
-
-
wxiaoguang authored
Backport #21479 For normal commits the notification url was wrong because oldCommitID is received from the shrinked commits list. This PR moves the commits list shrinking after the oldCommitID assignment.
-
- 17 Oct, 2022 2 commits
-
-
KN4CK3R authored
Backport of #21400 Co-authored-by:
wxiaoguang <wxiaoguang@gmail.com> Co-authored-by:
Lunny Xiao <xiaolunwen@gmail.com>
-
KN4CK3R authored
Backport of #21442
-