Skip to content

Commit bbcbbbe

Browse files
committed
Merge branch 'master' into dev-project-board
2 parents 71c1c73 + 007fb00 commit bbcbbbe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+140
-4426
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ root: true
22
reportUnusedDisableDirectives: true
33

44
ignorePatterns:
5-
- /web_src/js/vendor
65
- /templates/base/head.tmpl
76
- /templates/repo/activity.tmpl
87
- /templates/repo/view_file.tmpl

custom/conf/app.example.ini

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,12 @@ DEFAULT_ENABLE_TIMETRACKING = true
689689
; Default value for AllowOnlyContributorsToTrackTime
690690
; Only users with write permissions can track time if this is true
691691
DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true
692-
; Default value for the domain part of the user's email address in the git log
693-
; if he has set KeepEmailPrivate to true. The user's email will be replaced with a
694-
; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.
695-
NO_REPLY_ADDRESS = noreply.%(DOMAIN)s
692+
; Value for the domain part of the user's email address in the git log if user
693+
; has set KeepEmailPrivate to true. The user's email will be replaced with a
694+
; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. Default
695+
; value is "noreply." + DOMAIN, where DOMAIN resolves to the value from server.DOMAIN
696+
; Note: do not use the <DOMAIN> notation below
697+
NO_REPLY_ADDRESS = noreply.<DOMAIN>
696698
; Show Registration button
697699
SHOW_REGISTRATION_BUTTON = true
698700
; Show milestones dashboard page - a view of all the user's milestones

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ relation to port exhaustion.
482482
- `DEFAULT_ORG_VISIBILITY`: **public**: Set default visibility mode for organisations, either "public", "limited" or "private".
483483
- `DEFAULT_ORG_MEMBER_VISIBLE`: **false** True will make the membership of the users visible when added to the organisation.
484484
- `ALLOW_ONLY_EXTERNAL_REGISTRATION`: **false** Set to true to force registration only using third-party services.
485-
- `NO_REPLY_ADDRESS`: **DOMAIN** Default value for the domain part of the user's email address in the git log if he has set KeepEmailPrivate to true.
485+
- `NO_REPLY_ADDRESS`: **noreply.DOMAIN** Value for the domain part of the user's email address in the git log if user has set KeepEmailPrivate to true. DOMAIN resolves to the value in server.DOMAIN.
486486
The user's email will be replaced with a concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.
487487
- `USER_DELETE_WITH_COMMENTS_MAX_TIME`: **0** Minimum amount of time a user must exist before comments are kept when the user is deleted.
488488

docs/content/doc/advanced/mail-templates-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ did not include a subject part), Gitea's **internal default** will be used.
130130
The internal default (fallback) subject is the equivalent of:
131131

132132
```sh
133-
{{.SubjectPrefix}}[{{.Repo}}] {{.Issue.Title}} (#.Issue.Index)
133+
{{.SubjectPrefix}}[{{.Repo}}] {{.Issue.Title}} (#{{.Issue.Index}})
134134
```
135135

136136
For example: `Re: [mike/stuff] New color palette (#38)`

modules/git/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func GetRawDiffForFile(repoPath, startCommit, endCommit string, diffType RawDiff
4747
func GetRepoRawDiffForFile(repo *Repository, startCommit, endCommit string, diffType RawDiffType, file string, writer io.Writer) error {
4848
commit, err := repo.GetCommit(endCommit)
4949
if err != nil {
50-
return fmt.Errorf("GetCommit: %v", err)
50+
return err
5151
}
5252
fileArgs := make([]string, 0)
5353
if len(file) > 0 {

modules/graceful/manager_windows.go

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,19 @@ func (g *Manager) start() {
6868
// Set the running state
6969
g.setState(stateRunning)
7070
if skip, _ := strconv.ParseBool(os.Getenv("SKIP_MINWINSVC")); skip {
71+
log.Trace("Skipping SVC check as SKIP_MINWINSVC is set")
7172
return
7273
}
7374

7475
// Make SVC process
7576
run := svc.Run
76-
isInteractive, err := svc.IsWindowsService()
77+
isWindowsService, err := svc.IsWindowsService()
7778
if err != nil {
78-
log.Error("Unable to ascertain if running as an Interactive Session: %v", err)
79+
log.Error("Unable to ascertain if running as an Windows Service: %v", err)
7980
return
8081
}
81-
if isInteractive {
82+
if !isWindowsService {
83+
log.Trace("Not running a service ... using the debug SVC manager")
8284
run = debug.Run
8385
}
8486
go func() {
@@ -94,38 +96,49 @@ func (g *Manager) Execute(args []string, changes <-chan svc.ChangeRequest, statu
9496
status <- svc.Status{State: svc.StartPending, WaitHint: uint32(setting.StartupTimeout / time.Millisecond)}
9597
}
9698

99+
log.Trace("Awaiting server start-up")
97100
// Now need to wait for everything to start...
98101
if !g.awaitServer(setting.StartupTimeout) {
102+
log.Trace("... start-up failed ... Stopped")
99103
return false, 1
100104
}
101105

106+
log.Trace("Sending Running state to SVC")
107+
102108
// We need to implement some way of svc.AcceptParamChange/svc.ParamChange
103109
status <- svc.Status{
104110
State: svc.Running,
105111
Accepts: svc.AcceptStop | svc.AcceptShutdown | acceptHammerCode,
106112
}
107113

114+
log.Trace("Started")
115+
108116
waitTime := 30 * time.Second
109117

110118
loop:
111119
for {
112120
select {
113121
case <-g.ctx.Done():
122+
log.Trace("Shutting down")
114123
g.DoGracefulShutdown()
115124
waitTime += setting.GracefulHammerTime
116125
break loop
117126
case <-g.shutdownRequested:
127+
log.Trace("Shutting down")
118128
waitTime += setting.GracefulHammerTime
119129
break loop
120130
case change := <-changes:
121131
switch change.Cmd {
122132
case svc.Interrogate:
133+
log.Trace("SVC sent interrogate")
123134
status <- change.CurrentStatus
124135
case svc.Stop, svc.Shutdown:
136+
log.Trace("SVC requested shutdown - shutting down")
125137
g.DoGracefulShutdown()
126138
waitTime += setting.GracefulHammerTime
127139
break loop
128140
case hammerCode:
141+
log.Trace("SVC requested hammer - shutting down and hammering immediately")
129142
g.DoGracefulShutdown()
130143
g.DoImmediateHammer()
131144
break loop
@@ -134,6 +147,8 @@ loop:
134147
}
135148
}
136149
}
150+
151+
log.Trace("Sending StopPending state to SVC")
137152
status <- svc.Status{
138153
State: svc.StopPending,
139154
WaitHint: uint32(waitTime / time.Millisecond),
@@ -145,8 +160,10 @@ hammerLoop:
145160
case change := <-changes:
146161
switch change.Cmd {
147162
case svc.Interrogate:
163+
log.Trace("SVC sent interrogate")
148164
status <- change.CurrentStatus
149165
case svc.Stop, svc.Shutdown, hammerCmd:
166+
log.Trace("SVC requested hammer - hammering immediately")
150167
g.DoImmediateHammer()
151168
break hammerLoop
152169
default:
@@ -156,6 +173,8 @@ hammerLoop:
156173
break hammerLoop
157174
}
158175
}
176+
177+
log.Trace("Stopped")
159178
return false, 0
160179
}
161180

modules/public/public.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type Options struct {
2727
// KnownPublicEntries list all direct children in the `public` directory
2828
var KnownPublicEntries = []string{
2929
"css",
30+
"fonts",
3031
"img",
3132
"js",
3233
"serviceworker.js",

options/locale/locale_bg-BG.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ branch.included=Включено
967967

968968
topic.done=Готово
969969

970+
970971
[org]
971972
org_name_holder=Име на организацията
972973
org_full_name_holder=Пълно име на организацията

options/locale/locale_cs-CZ.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,7 @@ topic.done=Hotovo
19331933
topic.count_prompt=Nelze vybrat více než 25 témat
19341934
topic.format_prompt=Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
19351935

1936+
19361937
[org]
19371938
org_name_holder=Název organizace
19381939
org_full_name_holder=Celý název organizace

options/locale/locale_de-DE.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,7 @@ topic.done=Fertig
19581958
topic.count_prompt=Du kannst nicht mehr als 25 Themen auswählen
19591959
topic.format_prompt=Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
19601960

1961+
19611962
[org]
19621963
org_name_holder=Name der Organisation
19631964
org_full_name_holder=Vollständiger Name der Organisation

options/locale/locale_es-ES.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,7 @@ topic.done=Hecho
19591959
topic.count_prompt=No puede seleccionar más de 25 temas
19601960
topic.format_prompt=Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
19611961

1962+
19621963
[org]
19631964
org_name_holder=Nombre de la organización
19641965
org_full_name_holder=Nombre completo de la organización

options/locale/locale_fa-IR.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,7 @@ topic.done=انجام شد
16651665
topic.count_prompt=شما نمی توانید بیش از 25 موضوع انتخاب کنید
16661666
topic.format_prompt=موضوع می‌بایستی با حروف یا شماره ها شروع شود. و می‌تواند شامل دَش ('-') باشد و طول آن تا 35 کارکتر نیز امکانپذیر است.
16671667

1668+
16681669
[org]
16691670
org_name_holder=نام سازمان
16701671
org_full_name_holder=نام کامل سازمان

options/locale/locale_fi-FI.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ branch.delete=Poista haara '%s'
980980
topic.manage_topics=Hallitse aiheita
981981
topic.done=Valmis
982982

983+
983984
[org]
984985
org_name_holder=Organisaatio
985986
org_full_name_holder=Organisaation täydellinen nimi

options/locale/locale_fr-FR.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,7 @@ topic.done=Terminé
18471847
topic.count_prompt=Vous ne pouvez pas sélectionner plus de 25 sujets
18481848
topic.format_prompt=Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
18491849

1850+
18501851
[org]
18511852
org_name_holder=Nom de l'organisation
18521853
org_full_name_holder=Nom complet de l'organisation

options/locale/locale_hu-HU.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,7 @@ branch.deleted_by=Törölve %s által
12891289
topic.manage_topics=Témák kezelése
12901290
topic.done=Kész
12911291
1292+
12921293
[org]
12931294
org_name_holder=Szervezet neve
12941295
org_full_name_holder=Szervezet teljes neve

options/locale/locale_id-ID.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ branch.deleted_by=Dihapus oleh %s
10361036

10371037

10381038

1039+
10391040
[org]
10401041
org_name_holder=Nama Organisasi
10411042
org_full_name_holder=Organisasi Nama Lengkap

options/locale/locale_it-IT.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,7 @@ topic.done=Fatto
18131813
topic.count_prompt=Non puoi selezionare più di 25 argomenti
18141814
topic.format_prompt=Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
18151815

1816+
18161817
[org]
18171818
org_name_holder=Nome dell'Organizzazione
18181819
org_full_name_holder=Nome completo dell'organizzazione

options/locale/locale_ja-JP.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,6 +1859,7 @@ diff.whitespace_ignore_at_eol=行末の空白の違いは無視
18591859
diff.stats_desc=<strong>%d個のファイルの変更</strong>、<strong>%d行の追加</strong>、<strong>%d行の削除</strong>
18601860
diff.stats_desc_file=変更 %d 行: 追加 %d 行, 削除 %d 行
18611861
diff.bin=バイナリ
1862+
diff.bin_not_shown=バイナリファイルは表示されません。
18621863
diff.view_file=ファイルの表示
18631864
diff.file_before=変更前
18641865
diff.file_after=変更後
@@ -1959,6 +1960,10 @@ topic.done=完了
19591960
topic.count_prompt=選択できるのは25トピックまでです。
19601961
topic.format_prompt=トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
19611962

1963+
error.csv.too_large=このファイルは大きすぎるため表示できません。
1964+
error.csv.unexpected=このファイルは %d 行目の %d 文字目に予期しない文字が含まれているため表示できません。
1965+
error.csv.invalid_field_count=このファイルは %d 行目のフィールドの数が正しくないため表示できません。
1966+
19621967
[org]
19631968
org_name_holder=組織名
19641969
org_full_name_holder=組織のフルネーム

options/locale/locale_ko-KR.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,7 @@ topic.manage_topics=토픽 관리
11951195
topic.done=완료
11961196
topic.count_prompt=25개 이상의 토픽을 선택하실 수 없습니다.
11971197

1198+
11981199
[org]
11991200
org_name_holder=조직 이름
12001201
org_full_name_holder=조직 전체 이름

options/locale/locale_lv-LV.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,6 +1956,7 @@ topic.done=Gatavs
19561956
topic.count_prompt=Nevar pievienot vairāk kā 25 tēmas
19571957
topic.format_prompt=Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
19581958
1959+
19591960
[org]
19601961
org_name_holder=Organizācijas nosaukums
19611962
org_full_name_holder=Organizācijas pilnais nosaukums

options/locale/locale_ml-IN.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ settings.event_issues=ഇഷ്യൂകള്‍
763763
764764
765765
766+
766767
[org]
767768
768769

options/locale/locale_nl-NL.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,7 @@ topic.done=Klaar
18381838
topic.count_prompt=Je kunt niet meer dan 25 onderwerpen selecteren
18391839
topic.format_prompt=Onderwerpen moeten beginnen met een letter of nummer, kunnen streepjes bevatten ('-') en kunnen maximaal 35 tekens lang zijn.
18401840

1841+
18411842
[org]
18421843
org_name_holder=Organisatienaam
18431844
org_full_name_holder=Volledige naam organisatie

options/locale/locale_pl-PL.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,7 @@ topic.done=Gotowe
17531753
topic.count_prompt=Nie możesz wybrać więcej, niż 25 tematów
17541754
topic.format_prompt=Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
17551755
1756+
17561757
[org]
17571758
org_name_holder=Nazwa organizacji
17581759
org_full_name_holder=Pełna nazwa organizacji

options/locale/locale_pt-BR.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,7 @@ topic.done=Feito
17651765
topic.count_prompt=Você não pode selecionar mais de 25 tópicos
17661766
topic.format_prompt=Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
17671767

1768+
17681769
[org]
17691770
org_name_holder=Nome da organização
17701771
org_full_name_holder=Nome completo da organização

options/locale/locale_pt-PT.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,7 @@ topic.done=Concluído
19591959
topic.count_prompt=Não pode escolher mais do que 25 tópicos
19601960
topic.format_prompt=Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
19611961

1962+
19621963
[org]
19631964
org_name_holder=Nome da organização
19641965
org_full_name_holder=Nome completo da organização

options/locale/locale_ru-RU.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,7 @@ topic.done=Сохранить
19581958
topic.count_prompt=Вы не можете выбрать более 25 тем
19591959
topic.format_prompt=Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
19601960

1961+
19611962
[org]
19621963
org_name_holder=Название организации
19631964
org_full_name_holder=Полное название организации

options/locale/locale_sr-SP.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ release.downloads=Преузимања
452452

453453

454454

455+
455456
[org]
456457
org_name_holder=Име организације
457458
org_full_name_holder=Пун назив организације

options/locale/locale_sv-SE.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,6 +1663,7 @@ topic.done=Klar
16631663
topic.count_prompt=Du kan inte välja fler än 25 ämnen
16641664
topic.format_prompt=Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
16651665

1666+
16661667
[org]
16671668
org_name_holder=Organisationsnamn
16681669
org_full_name_holder=Organisationens Fullständiga Namn

options/locale/locale_tr-TR.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,7 @@ topic.done=Bitti
19581958
topic.count_prompt=25'ten fazla konu seçemezsiniz
19591959
topic.format_prompt=Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
19601960
1961+
19611962
[org]
19621963
org_name_holder=Organizasyon Adı
19631964
org_full_name_holder=Organizasyon Tam Adı

options/locale/locale_uk-UA.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,7 @@ topic.done=Готово
17591759
topic.count_prompt=Ви не можете вибрати більше 25 тем
17601760
topic.format_prompt=Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
17611761
1762+
17621763
[org]
17631764
org_name_holder=Назва організації
17641765
org_full_name_holder=Повна назва організації

options/locale/locale_zh-CN.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,7 @@ topic.done=保存
19581958
topic.count_prompt=您最多选择25个主题
19591959
topic.format_prompt=主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
19601960

1961+
19611962
[org]
19621963
org_name_holder=组织名称
19631964
org_full_name_holder=组织全名

options/locale/locale_zh-HK.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ release.downloads=下載附件
546546

547547

548548

549+
549550
[org]
550551
org_name_holder=組織名稱
551552
org_full_name_holder=組織全名

options/locale/locale_zh-TW.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,7 @@ topic.done=完成
19581958
topic.count_prompt=您最多能選擇 25 個主題
19591959
topic.format_prompt=主題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字。
19601960

1961+
19611962
[org]
19621963
org_name_holder=組織名稱
19631964
org_full_name_holder=組織全名

0 commit comments

Comments
 (0)