mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
[F3] it is experimental, do not enable by default
This commit is contained in:
parent
d0fee30167
commit
de325b21d0
4 changed files with 4 additions and 2 deletions
|
@ -2446,7 +2446,7 @@ ROUTER = console
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;
|
;;
|
||||||
;; Enable/Disable Friendly Forge Format (F3)
|
;; Enable/Disable Friendly Forge Format (F3)
|
||||||
;ENABLED = true
|
;ENABLED = false
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
|
@ -11,7 +11,7 @@ var (
|
||||||
F3 = struct {
|
F3 = struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
}{
|
}{
|
||||||
Enabled: true,
|
Enabled: false,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ import (
|
||||||
func Test_CmdF3(t *testing.T) {
|
func Test_CmdF3(t *testing.T) {
|
||||||
onGiteaRun(t, func(*testing.T, *url.URL) {
|
onGiteaRun(t, func(*testing.T, *url.URL) {
|
||||||
AllowLocalNetworks := setting.Migrations.AllowLocalNetworks
|
AllowLocalNetworks := setting.Migrations.AllowLocalNetworks
|
||||||
|
setting.F3.Enabled = true
|
||||||
setting.Migrations.AllowLocalNetworks = true
|
setting.Migrations.AllowLocalNetworks = true
|
||||||
// without migrations.Init() AllowLocalNetworks = true is not effective and
|
// without migrations.Init() AllowLocalNetworks = true is not effective and
|
||||||
// a http call fails with "...migration can only call allowed HTTP servers..."
|
// a http call fails with "...migration can only call allowed HTTP servers..."
|
||||||
|
|
|
@ -25,6 +25,7 @@ import (
|
||||||
func TestF3(t *testing.T) {
|
func TestF3(t *testing.T) {
|
||||||
onGiteaRun(t, func(t *testing.T, u *url.URL) {
|
onGiteaRun(t, func(t *testing.T, u *url.URL) {
|
||||||
AllowLocalNetworks := setting.Migrations.AllowLocalNetworks
|
AllowLocalNetworks := setting.Migrations.AllowLocalNetworks
|
||||||
|
setting.F3.Enabled = true
|
||||||
setting.Migrations.AllowLocalNetworks = true
|
setting.Migrations.AllowLocalNetworks = true
|
||||||
AppVer := setting.AppVer
|
AppVer := setting.AppVer
|
||||||
// Gitea SDK (go-sdk) need to parse the AppVer from server response, so we must set it to a valid version string.
|
// Gitea SDK (go-sdk) need to parse the AppVer from server response, so we must set it to a valid version string.
|
||||||
|
|
Loading…
Reference in a new issue