...
 
Commits (2)
......@@ -2,7 +2,7 @@
# Maintainer: Elouan Martinet <[email protected]>
pkgname=gitea
pkgver=1.11.7
pkgver=1.12.1
pkgrel=1
pkgdesc='A painless, self-hosted Git service'
arch=('x86_64')
......@@ -12,21 +12,15 @@ depends=('git')
makedepends=('go' 'go-bindata' 'npm' 'make')
groups=('selfbuild')
source=("git+https://github.com/go-gitea/gitea.git#tag=v${pkgver}"
tab-size-4.diff
remove-pre-space.diff
longer-session-token.diff)
tab-size-4.diff)
sha512sums=('SKIP'
'b205530f33d9ab71d847254d09e1b878aee53d0177d23f1f33b7d7641c169ac14b4721267101e5db8a7e28aadf96448995bc9a4cf3cb1d7594245ef63c6fea55'
'a817e396f9736fd5c78d283b2b918d6aecc52c6ce1328a0859150c482aa216774c5be37c9cf7edfc5245a84ead7d27eff7d540522afa610159829aa23f49c096'
'008f35c280dae2a4f417709f30084fc2c7e1b881c3120487fb0475910f761f74cbe9cd0ca1a3803da2cc21d97d7f01eb2e3009ee3c18662b7d2e5eaad46d51f6')
'b205530f33d9ab71d847254d09e1b878aee53d0177d23f1f33b7d7641c169ac14b4721267101e5db8a7e28aadf96448995bc9a4cf3cb1d7594245ef63c6fea55')
prepare() {
mkdir -p "${srcdir}/go/src/code.gitea.io"
ln -sfr "${srcdir}/gitea" "${srcdir}/go/src/code.gitea.io/gitea"
cd "${srcdir}/go/src/code.gitea.io/gitea"
git apply "${srcdir}/tab-size-4.diff"
git apply "${srcdir}/remove-pre-space.diff"
git apply "${srcdir}/longer-session-token.diff"
}
build() {
......
diff --git a/modules/setting/session.go b/modules/setting/session.go
index 6e5a28bb7..9227e4c5d 100644
--- a/modules/setting/session.go
+++ b/modules/setting/session.go
@@ -33,6 +33,7 @@ func newSessionService() {
SessionConfig.Gclifetime = Cfg.Section("session").Key("GC_INTERVAL_TIME").MustInt64(86400)
SessionConfig.Maxlifetime = Cfg.Section("session").Key("SESSION_LIFE_TIME").MustInt64(86400)
SessionConfig.Domain = Cfg.Section("session").Key("DOMAIN").String()
+ SessionConfig.IDLength = 76
shadowConfig, err := json.Marshal(SessionConfig)
if err != nil {
diff --git a/public/less/_base.less b/public/less/_base.less
index a916e08bd..a02ad2adb 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -983,10 +983,6 @@ footer {
li {
display: block;
width: 100%;
-
- &:before {
- content: ' ';
- }
}
}
}