Skip to content

Commit b2c0630

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: add submodule diff links (go-gitea#33097) [skip ci] Updated translations via Crowdin Update status check for all supported on.pull_request.types in Gitea (go-gitea#33117) Support the new exit code for `git remote` subcommands for git version >=2.30.0 (go-gitea#33129) Make git clone URL could use current signed-in user (go-gitea#33091) Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (go-gitea#33106)
2 parents f9f12b2 + a8e7cae commit b2c0630

Some content is hidden

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

50 files changed

+1159
-448
lines changed

assets/go-licenses.json

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

custom/conf/app.example.ini

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ RUN_USER = ; git
7878
;; Set the domain for the server
7979
;DOMAIN = localhost
8080
;;
81-
;; Overwrite the automatically generated public URL. Necessary for proxies and docker.
82-
;ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
81+
;; The AppURL used by Gitea to generate absolute links, defaults to "{PROTOCOL}://{DOMAIN}:{HTTP_PORT}/".
82+
;; Most users should set it to the real website URL of their Gitea instance.
83+
;ROOT_URL =
8384
;;
8485
;; For development purpose only. It makes Gitea handle sub-path ("/sub-path/owner/repo/...") directly when debugging without a reverse proxy.
8586
;; DO NOT USE IT IN PRODUCTION!!!
@@ -103,8 +104,8 @@ RUN_USER = ; git
103104
;REDIRECT_OTHER_PORT = false
104105
;PORT_TO_REDIRECT = 80
105106
;;
106-
;; expect PROXY protocol header on connections to https redirector.
107-
;REDIRECTOR_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s
107+
;; expect PROXY protocol header on connections to https redirector, defaults to USE_PROXY_PROTOCOL
108+
;REDIRECTOR_USE_PROXY_PROTOCOL =
108109
;; Minimum and maximum supported TLS versions
109110
;SSL_MIN_VERSION=TLSv1.2
110111
;SSL_MAX_VERSION=
@@ -128,13 +129,14 @@ RUN_USER = ; git
128129
;; most cases you do not need to change the default value. Alter it only if
129130
;; your SSH server node is not the same as HTTP node. For different protocol, the default
130131
;; values are different. If `PROTOCOL` is `http+unix`, the default value is `http://unix/`.
131-
;; If `PROTOCOL` is `fcgi` or `fcgi+unix`, the default value is `%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`.
132-
;; If listen on `0.0.0.0`, the default value is `%(PROTOCOL)s://localhost:%(HTTP_PORT)s/`, Otherwise the default
133-
;; value is `%(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/`.
134-
;LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
132+
;; If `PROTOCOL` is `fcgi` or `fcgi+unix`, the default value is `{PROTOCOL}://{HTTP_ADDR}:{HTTP_PORT}/`.
133+
;; If listen on `0.0.0.0`, the default value is `{PROTOCOL}://localhost:{HTTP_PORT}/`.
134+
;; Otherwise the default value is `{PROTOCOL}://{HTTP_ADDR}:{HTTP_PORT}/`.
135+
;; Most users don't need (and shouldn't) set this value.
136+
;LOCAL_ROOT_URL =
135137
;;
136-
;; When making local connections pass the PROXY protocol header.
137-
;LOCAL_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s
138+
;; When making local connections pass the PROXY protocol header, defaults to USE_PROXY_PROTOCOL
139+
;LOCAL_USE_PROXY_PROTOCOL =
138140
;;
139141
;; Disable SSH feature when not available
140142
;DISABLE_SSH = false
@@ -146,22 +148,26 @@ RUN_USER = ; git
146148
;SSH_SERVER_USE_PROXY_PROTOCOL = false
147149
;;
148150
;; Username to use for the builtin SSH server. If blank, then it is the value of RUN_USER.
149-
;BUILTIN_SSH_SERVER_USER = %(RUN_USER)s
151+
;BUILTIN_SSH_SERVER_USER =
150152
;;
151-
;; Domain name to be exposed in clone URL
152-
;SSH_DOMAIN = %(DOMAIN)s
153+
;; Domain name to be exposed in clone URL, defaults to DOMAIN or the domain part of ROOT_URL
154+
;SSH_DOMAIN =
153155
;;
154-
;; SSH username displayed in clone URLs.
155-
;SSH_USER = %(BUILTIN_SSH_SERVER_USER)s
156+
;; SSH username displayed in clone URLs. It defaults to BUILTIN_SSH_SERVER_USER or RUN_USER.
157+
;; If it is set to "(DOER_USERNAME)", it will use current signed-in user's username.
158+
;; This option is only for some advanced users who have configured their SSH reverse-proxy
159+
;; and need to use different usernames for git SSH clone.
160+
;; Most users should just leave it blank.
161+
;SSH_USER =
156162
;;
157163
;; The network interface the builtin SSH server should listen on
158164
;SSH_LISTEN_HOST =
159165
;;
160166
;; Port number to be exposed in clone URL
161167
;SSH_PORT = 22
162168
;;
163-
;; The port number the builtin SSH server should listen on
164-
;SSH_LISTEN_PORT = %(SSH_PORT)s
169+
;; The port number the builtin SSH server should listen on, defaults to SSH_PORT
170+
;SSH_LISTEN_PORT =
165171
;;
166172
;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
167173
;SSH_ROOT_PATH =
@@ -188,7 +194,7 @@ RUN_USER = ; git
188194
;;
189195
;; For the built-in SSH server, choose the keypair to offer as the host key
190196
;; The private key should be at SSH_SERVER_HOST_KEY and the public SSH_SERVER_HOST_KEY.pub
191-
;; relative paths are made absolute relative to the %(APP_DATA_PATH)s
197+
;; relative paths are made absolute relative to the APP_DATA_PATH
192198
;SSH_SERVER_HOST_KEYS=ssh/gitea.rsa, ssh/gogs.rsa
193199
;;
194200
;; Directory to create temporary files in when testing public keys using ssh-keygen,
@@ -582,7 +588,7 @@ ENABLED = true
582588
[log]
583589
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
584590
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
585-
;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log
591+
;; Root path for the log files - defaults to "{AppWorkPath}/log"
586592
;ROOT_PATH =
587593
;;
588594
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -682,8 +688,8 @@ LEVEL = Info
682688
;; The path of git executable. If empty, Gitea searches through the PATH environment.
683689
;PATH =
684690
;;
685-
;; The HOME directory for Git
686-
;HOME_PATH = %(APP_DATA_PATH)s/home
691+
;; The HOME directory for Git, defaults to "{APP_DATA_PATH}/home"
692+
;HOME_PATH =
687693
;;
688694
;; Disables highlight of added and removed changes
689695
;DISABLE_DIFF_HIGHLIGHT = false
@@ -946,8 +952,8 @@ LEVEL = Info
946952
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
947953
;[repository]
948954
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
949-
;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)s/gitea-repositories.
950-
;; A relative path is interpreted as _`AppWorkPath`_/%(ROOT)s
955+
;; Root path for storing all repository data. By default, it is set to "{APP_DATA_PATH}/gitea-repositories".
956+
;; A relative path is interpreted as "{AppWorkPath}/{ROOT}" (use AppWorkPath as base path).
951957
;ROOT =
952958
;;
953959
;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
@@ -1506,7 +1512,8 @@ LEVEL = Info
15061512
;TYPE = persistable-channel
15071513
;;
15081514
;; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared.
1509-
;DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
1515+
;; Relative paths will be made absolute against "APP_DATA_PATH"
1516+
;DATADIR = queues/
15101517
;;
15111518
;; Default queue length before a channel queue will block
15121519
;LENGTH = 100000

go.mod

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0
2525
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.4.1
2626
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358
27-
github.com/ProtonMail/go-crypto v1.0.0
27+
github.com/ProtonMail/go-crypto v1.1.4
2828
github.com/PuerkitoBio/goquery v1.10.0
2929
github.com/SaveTheRbtz/zstd-seekable-format-go/pkg v0.7.3
3030
github.com/alecthomas/chroma/v2 v2.14.0
@@ -54,8 +54,8 @@ require (
5454
github.com/go-chi/cors v1.2.1
5555
github.com/go-co-op/gocron v1.37.0
5656
github.com/go-enry/go-enry/v2 v2.9.1
57-
github.com/go-git/go-billy/v5 v5.6.0
58-
github.com/go-git/go-git/v5 v5.12.0
57+
github.com/go-git/go-billy/v5 v5.6.1
58+
github.com/go-git/go-git/v5 v5.13.1
5959
github.com/go-ldap/ldap/v3 v3.4.8
6060
github.com/go-redsync/redsync/v4 v4.13.0
6161
github.com/go-sql-driver/mysql v1.8.1
@@ -106,7 +106,7 @@ require (
106106
github.com/sassoftware/go-rpmutils v0.4.0
107107
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3
108108
github.com/shurcooL/vfsgen v0.0.0-20230704071429-0000e147ea92
109-
github.com/stretchr/testify v1.9.0
109+
github.com/stretchr/testify v1.10.0
110110
github.com/syndtr/goleveldb v1.0.0
111111
github.com/tstranex/u2f v1.0.0
112112
github.com/ulikunitz/xz v0.5.12
@@ -118,14 +118,14 @@ require (
118118
github.com/yuin/goldmark v1.7.8
119119
github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
120120
github.com/yuin/goldmark-meta v1.1.0
121-
golang.org/x/crypto v0.31.0
121+
golang.org/x/crypto v0.32.0
122122
golang.org/x/image v0.21.0
123-
golang.org/x/net v0.33.0
123+
golang.org/x/net v0.34.0
124124
golang.org/x/oauth2 v0.23.0
125125
golang.org/x/sync v0.10.0
126-
golang.org/x/sys v0.28.0
126+
golang.org/x/sys v0.29.0
127127
golang.org/x/text v0.21.0
128-
golang.org/x/tools v0.26.0
128+
golang.org/x/tools v0.29.0
129129
google.golang.org/grpc v1.67.1
130130
google.golang.org/protobuf v1.35.1
131131
gopkg.in/ini.v1 v1.67.0
@@ -186,7 +186,7 @@ require (
186186
github.com/couchbase/gomemcached v0.3.2 // indirect
187187
github.com/couchbase/goutils v0.1.2 // indirect
188188
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
189-
github.com/cyphar/filepath-securejoin v0.3.4 // indirect
189+
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
190190
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
191191
github.com/davidmz/go-pageant v1.0.2 // indirect
192192
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
@@ -219,7 +219,7 @@ require (
219219
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
220220
github.com/golang-sql/sqlexp v0.1.0 // indirect
221221
github.com/golang/geo v0.0.0-20230421003525-6adc56603217 // indirect
222-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
222+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
223223
github.com/golang/protobuf v1.5.4 // indirect
224224
github.com/golang/snappy v0.0.4 // indirect
225225
github.com/google/btree v1.1.3 // indirect
@@ -253,6 +253,7 @@ require (
253253
github.com/mitchellh/copystructure v1.2.0 // indirect
254254
github.com/mitchellh/mapstructure v1.5.0 // indirect
255255
github.com/mitchellh/reflectwalk v1.0.2 // indirect
256+
github.com/mmcloughlin/avo v0.6.0 // indirect
256257
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
257258
github.com/modern-go/reflect2 v1.0.2 // indirect
258259
github.com/mrjones/oauth v0.0.0-20190623134757-126b35219450 // indirect
@@ -264,7 +265,7 @@ require (
264265
github.com/onsi/ginkgo v1.16.5 // indirect
265266
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
266267
github.com/pierrec/lz4/v4 v4.1.21 // indirect
267-
github.com/pjbgf/sha1cd v0.3.0 // indirect
268+
github.com/pjbgf/sha1cd v0.3.1 // indirect
268269
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
269270
github.com/prometheus/client_model v0.6.1 // indirect
270271
github.com/prometheus/common v0.60.1 // indirect
@@ -304,7 +305,7 @@ require (
304305
go.uber.org/multierr v1.11.0 // indirect
305306
go.uber.org/zap v1.27.0 // indirect
306307
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
307-
golang.org/x/mod v0.21.0 // indirect
308+
golang.org/x/mod v0.22.0 // indirect
308309
golang.org/x/time v0.7.0 // indirect
309310
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 // indirect
310311
gopkg.in/warnings.v0 v0.1.2 // indirect

0 commit comments

Comments
 (0)