Skip to content

Commit 03ed9c3

Browse files
authored
Merge branch 'main' into jt/fix-task-list-frontmatter
2 parents b42a109 + d8e4560 commit 03ed9c3

File tree

11 files changed

+55
-98
lines changed

11 files changed

+55
-98
lines changed

docs/content/doc/help/faq.en-us.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,19 @@ For more help resources, check all [Support Options]({{< relref "doc/help/suppor
2525

2626
{{< toc >}}
2727

28-
## Difference between 1.x and 1.x.x downloads
28+
## Difference between 1.x and 1.x.x downloads, how can I get latest stable release with bug fixes?
2929

30-
Version 1.7.x will be used for this example.
30+
Version 1.20.x will be used for this example.
3131

32-
**NOTE:** this example applies to Docker images as well!
32+
On our [downloads page](https://dl.gitea.com/gitea/) you will see a 1.20 directory, as well as directories for 1.20.0, 1.20.1.
3333

34-
On our [downloads page](https://dl.gitea.io/gitea/) you will see a 1.7 directory, as well as directories for 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, and 1.7.6.
34+
The 1.20 directory is the nightly build, which is built on each merged commit to the [`release/v1.20`](https://github.com/go-gitea/gitea/tree/release/v1.20) branch.
3535

36-
The 1.7 and 1.7.0 directories are **not** the same. The 1.7 directory is built on each merged commit to the [`release/v1.7`](https://github.com/go-gitea/gitea/tree/release/v1.7) branch.
36+
The 1.20.0 directory is a release build that was created when the [`v1.20.0`](https://github.com/go-gitea/gitea/releases/tag/v1.20.0) tag was created.
3737

38-
The 1.7.0 directory, however, is a build that was created when the [`v1.7.0`](https://github.com/go-gitea/gitea/releases/tag/v1.7.0) tag was created.
38+
The nightly builds (1.x) downloads will change as commits are merged to their respective branch, they contain the latest changes/fixes before a tag release is built.
3939

40-
This means that 1.x downloads will change as commits are merged to their respective branch (think of it as a separate "main" branch for each release).
41-
42-
On the other hand, 1.x.x downloads should never change.
40+
If a bug fix is targeted on 1.20.1 but 1.20.1 is not released yet, you can get the "1.20-nightly" build to get the bug fix.
4341

4442
## How to migrate from Gogs/GitHub/etc. to Gitea
4543

@@ -404,14 +402,6 @@ You will also need to change the app.ini database charset to `CHARSET=utf8mb4`.
404402

405403
Gitea requires the system or browser to have one of the supported Emoji fonts installed, which are Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji and Twemoji Mozilla. Generally, the operating system should already provide one of these fonts, but especially on Linux, it may be necessary to install them manually.
406404

407-
## Stdout logging on SystemD and Docker
408-
409-
Stdout on systemd goes to the journal by default. Try using `journalctl`, `journalctl -u gitea`, or `journalctl <path-to-gitea-binary>`.
410-
411-
Similarly, stdout on docker can be viewed using `docker logs <container>`.
412-
413-
To collect logs for help and issue report, see [Support Options]({{< relref "doc/help/support.en-us.md" >}}).
414-
415405
## Initial logging
416406

417407
Before Gitea has read the configuration file and set-up its logging it will log a number of things to stdout in order to help debug things if logging does not work.
@@ -454,12 +444,6 @@ gitea doctor recreate-table
454444

455445
It is highly recommended to back-up your database before running these commands.
456446

457-
## Why are tabs/indents wrong when viewing files
458-
459-
If you are using Cloudflare, turn off the auto-minify option in the dashboard.
460-
461-
`Speed` -> `Optimization` -> Uncheck `HTML` within the `Auto-Minify` settings.
462-
463447
## How to adopt repositories from disk
464448

465449
- Add your (bare) repositories to the correct spot for your configuration (`repository.ROOT`), ensuring they are in the correct layout `<REPO_ROOT>/[user]/[repo].git`.
@@ -470,3 +454,17 @@ If you are using Cloudflare, turn off the auto-minify option in the dashboard.
470454
- Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/administration/config-cheat-sheet.en-us.md#repository" >}}).
471455
- If the above steps are done correctly, you should be able to select repositories to adopt.
472456
- If no repositories are found, enable [debug logging]({{< relref "doc/administration/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors.
457+
458+
## Gitea can't start on NFS
459+
460+
In most cases, it's caused by broken NFS lock system. You can try to stop Gitea process and
461+
run `flock -n /data-nfs/gitea/queues/LOCK echo 'lock acquired'` to see whether the lock can be acquired immediately.
462+
If the lock can't be acquired, NFS might report some errors like `lockd: cannot monitor node-3, statd: server rpc.statd not responding, timed out` in its server logs.
463+
464+
Then the NFS lock could be reset by:
465+
466+
```bash
467+
# /etc/init.d/nfs stop
468+
# rm -rf /var/lib/nfs/sm/*
469+
# /etc/init.d/nfs start
470+
```

docs/content/doc/help/support.en-us.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,13 @@ menu:
3535
[log]
3636
LEVEL=debug
3737
MODE=console,file
38-
ROUTER=console,file
39-
XORM=console,file
40-
ENABLE_XORM_LOG=true
41-
FILE_NAME=gitea.log
42-
[log.file.router]
43-
FILE_NAME=router.log
44-
[log.file.xorm]
45-
FILE_NAME=xorm.log
4638
```
4739

4840
3. Any error messages you are seeing.
4941
4. When possible, try to replicate the issue on [try.gitea.io](https://try.gitea.io) and include steps so that others can reproduce the issue.
5042
- This will greatly improve the chance that the root of the issue can be quickly discovered and resolved.
51-
5. If you meet slow/hanging/deadlock problems, please report the stack trace when the problem occurs:
52-
1. Enable pprof in `app.ini` and restart Gitea
53-
54-
```ini
55-
[server]
56-
ENABLE_PPROF = true
57-
```
58-
59-
2. Trigger the bug, when Gitea gets stuck, use curl or browser to visit: `http://127.0.0.1:6060/debug/pprof/goroutine?debug=1` (IP must be `127.0.0.1` and port must be `6060`).
60-
3. If you are using Docker, please use `docker exec -it <container-name> curl "http://127.0.0.1:6060/debug/pprof/goroutine?debug=1"`.
61-
4. Report the output (the stack trace doesn't contain sensitive data)
43+
5. If you encounter slow/hanging/deadlock problems, please report the stack trace when the problem occurs.
44+
Go to the "Site Admin" -> "Monitoring" -> "Stacktrace" -> "Download diagnosis report".
6245

6346
## Bugs
6447

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ASWF Digital Assets License v1.1
2+
3+
License for <Asset Name> (the "Asset Name").
4+
5+
<Asset Name> Copyright <Year> <Asset Owner>. All rights reserved.
6+
7+
Redistribution and use of these digital assets, with or without modification, solely for education, training, research, software and hardware development, performance benchmarking (including publication of benchmark results and permitting reproducibility of the benchmark results by third parties), or software and hardware product demonstrations, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of these digital assets or any part of them must include the above copyright notice, this list of conditions and the disclaimer below, and if applicable, a description of how the redistributed versions of the digital assets differ from the originals.
10+
11+
2. Publications showing images derived from these digital assets must include the above copyright notice.
12+
13+
3. The names of copyright holder or the names of its contributors may NOT be used to promote or to imply endorsement, sponsorship, or affiliation with products developed or tested utilizing these digital assets or benchmarking results obtained from these digital assets, without prior written permission from copyright holder.
14+
15+
4. The assets and their output may only be referred to as the Asset Name listed above, and your use of the Asset Name shall be solely to identify the digital assets. Other than as expressly permitted by this License, you may NOT use any trade names, trademarks, service marks, or product names of the copyright holder for any purpose.
16+
17+
DISCLAIMER: THESE DIGITAL ASSETS ARE PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THESE DIGITAL ASSETS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

options/license/GPL-3.0-only

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GNU GENERAL PUBLIC LICENSE
22
Version 3, 29 June 2007
33

4-
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
4+
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
55

66
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
77

@@ -215,7 +215,7 @@ To do so, attach the following notices to the program. It is safest to attach th
215215

216216
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
217217

218-
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
218+
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
219219

220220
Also add information on how to contact you by electronic and paper mail.
221221

@@ -227,6 +227,6 @@ If the program does terminal interaction, make it output a short notice like thi
227227

228228
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
229229

230-
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
230+
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
231231

232-
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
232+
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.

options/license/GPL-3.0-or-later

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GNU GENERAL PUBLIC LICENSE
22
Version 3, 29 June 2007
33

4-
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
4+
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
55

66
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
77

@@ -215,7 +215,7 @@ To do so, attach the following notices to the program. It is safest to attach th
215215

216216
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
217217

218-
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
218+
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
219219

220220
Also add information on how to contact you by electronic and paper mail.
221221

@@ -227,6 +227,6 @@ If the program does terminal interaction, make it output a short notice like thi
227227

228228
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
229229

230-
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
230+
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
231231

232-
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
232+
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.

routers/install/install.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,9 @@ func SubmitInstall(ctx *context.Context) {
453453

454454
cfg.Section("session").Key("PROVIDER").SetValue("file")
455455

456-
cfg.Section("log").Key("MODE").SetValue("console")
456+
cfg.Section("log").Key("MODE").MustString("console")
457457
cfg.Section("log").Key("LEVEL").SetValue(setting.Log.Level.String())
458458
cfg.Section("log").Key("ROOT_PATH").SetValue(form.LogRootPath)
459-
cfg.Section("log").Key("ROUTER").SetValue("console")
460459

461460
cfg.Section("repository.pull-request").Key("DEFAULT_MERGE_STYLE").SetValue("merge")
462461

templates/repo/actions/runs_list.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<div class="issue list gt-m-0">
22
{{range .Runs}}
3-
<li class="item gt-df gt-py-3 gt-ab">
4-
<div class="issue-item-left gt-df gt-mr-2">
3+
<li class="item gt-df gt-py-4">
4+
<div class="issue-item-left issue-item-icon gt-df gt-items-start">
55
{{template "repo/actions/status" (dict "status" .Status.String "locale" $.locale)}}
66
</div>
77
<div class="issue-item-main action-item-main gt-f1 gt-fc gt-df gt-mr-3">
8-
<div class="issue-item-top-row">
9-
<a class="index gt-ml-0 gt-mr-2" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
8+
<div class="issue-item-top-row gt-mb-2">
9+
<a class="index gt-no-underline title action-item-title" title="{{.Title}}" href="{{if .Link}}{{.Link}}{{else}}{{$.Link}}/{{.Index}}{{end}}">
1010
{{- .Title -}}
1111
</a>
1212
</div>
13-
<div class="desc issue-item-bottom-row gt-df gt-ac gt-fw gt-my-1">
13+
<div class="desc issue-item-bottom-row gt-df gt-ac gt-fw">
1414
<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>: {{$.locale.Tr "actions.runs.commit"}}
1515
<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>{{$.locale.Tr "actions.runs.pushed_by"}} {{.TriggerUser.GetDisplayName}}
1616
<span class="ui label">

web_src/css/base.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,19 +2199,6 @@ table th[data-sortt-desc] .svg {
21992199
vertical-align: -0.075em;
22002200
}
22012201

2202-
@supports (-webkit-hyphens:none) {
2203-
body:not(.safari-above125) .emoji,
2204-
body:not(.safari-above125) .reaction {
2205-
font-size: inherit;
2206-
vertical-align: inherit;
2207-
}
2208-
body:not(.safari-above125) .emoji img,
2209-
body:not(.safari-above125) .reaction img {
2210-
font-size: 1.25em;
2211-
vertical-align: -0.225em !important;
2212-
}
2213-
}
2214-
22152202
.emoji img,
22162203
.reaction img {
22172204
border-width: 0 !important;

web_src/js/components/RepoActionView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ const sfc = {
415415
const fullScreenEl = document.querySelector('.action-view-right');
416416
const outerEl = document.querySelector('.full.height');
417417
const actionBodyEl = document.querySelector('.action-view-body');
418-
const headerEl = document.querySelector('.ui.main.menu');
418+
const headerEl = document.querySelector('#navbar');
419419
const contentEl = document.querySelector('.page-content.repository');
420420
const footerEl = document.querySelector('.page-footer');
421421
toggleElem(headerEl, !this.isFullScreen);

web_src/js/features/common-global.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import $ from 'jquery';
22
import 'jquery.are-you-sure';
3-
import {mqBinarySearch} from '../utils.js';
43
import {createDropzone} from './dropzone.js';
54
import {initCompColorPicker} from './comp/ColorPicker.js';
65
import {showGlobalErrorMessage} from '../bootstrap.js';
@@ -62,19 +61,6 @@ export function initGlobalButtonClickOnEnter() {
6261
}
6362

6463
export function initGlobalCommon() {
65-
// Undo Safari emoji glitch fix at high enough zoom levels
66-
if (navigator.userAgent.match('Safari')) {
67-
$(window).on('resize', () => {
68-
const px = mqBinarySearch('width', 0, 4096, 1, 'px');
69-
const em = mqBinarySearch('width', 0, 1024, 0.01, 'em');
70-
if (em * 16 * 1.25 - px <= -1) {
71-
$('body').addClass('safari-above125');
72-
} else {
73-
$('body').removeClass('safari-above125');
74-
}
75-
});
76-
}
77-
7864
// Semantic UI modules.
7965
const $uiDropdowns = $('.ui.dropdown');
8066

web_src/js/utils.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,6 @@ export function stripTags(text) {
3737
return text.replace(/<[^>]*>?/g, '');
3838
}
3939

40-
// searches the inclusive range [minValue, maxValue].
41-
// credits: https://matthiasott.com/notes/write-your-media-queries-in-pixels-not-ems
42-
export function mqBinarySearch(feature, minValue, maxValue, step, unit) {
43-
if (maxValue - minValue < step) {
44-
return minValue;
45-
}
46-
const mid = Math.ceil((minValue + maxValue) / 2 / step) * step;
47-
if (matchMedia(`screen and (min-${feature}:${mid}${unit})`).matches) {
48-
return mqBinarySearch(feature, mid, maxValue, step, unit); // feature is >= mid
49-
}
50-
return mqBinarySearch(feature, minValue, mid - step, step, unit); // feature is < mid
51-
}
52-
5340
export function parseIssueHref(href) {
5441
const path = (href || '').replace(/[#?].*$/, '');
5542
const [_, owner, repo, type, index] = /([^/]+)\/([^/]+)\/(issues|pulls)\/([0-9]+)/.exec(path) || [];

0 commit comments

Comments
 (0)