gitea: 1.18.5 -> 1.19.0

ChangeLog: https://github.com/go-gitea/gitea/releases/tag/v1.19.0
This commit is contained in:
Maximilian Bosch 2023-03-20 14:32:10 +01:00
parent 9030145e66
commit 5c5f710388
No known key found for this signature in database
GPG key ID: 9A6EEA275CA5BE0A
3 changed files with 9 additions and 9 deletions

View file

@ -93,7 +93,7 @@ let
api_token = server.succeed( api_token = server.succeed(
"curl --fail -X POST http://test:totallysafe@localhost:3000/api/v1/users/test/tokens " "curl --fail -X POST http://test:totallysafe@localhost:3000/api/v1/users/test/tokens "
+ "-H 'Accept: application/json' -H 'Content-Type: application/json' -d " + "-H 'Accept: application/json' -H 'Content-Type: application/json' -d "
+ "'{\"name\":\"token\"}' | jq '.sha1' | xargs echo -n" + "'{\"name\":\"token\",\"scopes\":[\"all\"]}' | jq '.sha1' | xargs echo -n"
) )
server.succeed( server.succeed(

View file

@ -15,12 +15,12 @@
buildGoModule rec { buildGoModule rec {
pname = "gitea"; pname = "gitea";
version = "1.18.5"; version = "1.19.0";
# not fetching directly from the git repo, because that lacks several vendor files for the web UI # not fetching directly from the git repo, because that lacks several vendor files for the web UI
src = fetchurl { src = fetchurl {
url = "https://dl.gitea.io/gitea/${version}/gitea-src-${version}.tar.gz"; url = "https://dl.gitea.io/gitea/${version}/gitea-src-${version}.tar.gz";
hash = "sha256-OGPn4fknYfzmuAi6CL8m/Ih4uRNraVDmpBm20qT3lKk="; hash = "sha256-9nDzXSGYxYw34/Ekmj44VdGLVhRsGL2e5gfyoyPUqGQ=";
}; };
vendorHash = null; vendorHash = null;

View file

@ -1,10 +1,10 @@
diff --git a/modules/setting/setting.go b/modules/setting/setting.go diff --git a/modules/setting/server.go b/modules/setting/server.go
index 45e55a2..9d18ee4 100644 index 183906268..fa02e8915 100644
--- a/modules/setting/setting.go --- a/modules/setting/server.go
+++ b/modules/setting/setting.go +++ b/modules/setting/server.go
@@ -667,7 +667,7 @@ func NewContext() { @@ -319,7 +319,7 @@ func loadServerFrom(rootCfg ConfigProvider) {
OfflineMode = sec.Key("OFFLINE_MODE").MustBool() OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool() Log.DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
if len(StaticRootPath) == 0 { if len(StaticRootPath) == 0 {
- StaticRootPath = AppWorkPath - StaticRootPath = AppWorkPath
+ StaticRootPath = "@data@" + StaticRootPath = "@data@"