From 274aee0bb0168f0ad2571c5e04b0ee81c944d61c Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Tue, 5 Dec 2023 22:32:11 +0100 Subject: [PATCH] [GITEA] correct default license selection The default license choice was not working as expected, because both the files in options/license were named differently, and the setting string is not parsed properly. The documentation will also be corrected. See conversation on Matrix: https://matrix.to/#/%23forgejo-chat%3Amatrix.org/%24ue13GJPr2d7D8fEaLx8yh1mFn3a4TVy_khkajrAYtx0?via=matrix.tu-berlin.de&via=turbo.ooo&via=matrix.org&via=catgirl.cloud (cherry picked from commit 450a34d08d6d00063e97c4e176cdfe0695367985) (cherry picked from commit 2770af7044cc8e5e564318a0d733b43ec16bdde5) (cherry picked from commit 0fadf41985917d629b18c0a822b6317fa618c841) (cherry picked from commit 9c3aa1dbbd13f2670d76ea00c00fec3b9cbb0339) (cherry picked from commit f8ecff84222163ba513e81244c37d78c47499922) (cherry picked from commit 1e289375462e4ba24be5432d035fe5d149789c73) (cherry picked from commit e566ffbb8de285c40c322744d48c32c17de93852) (cherry picked from commit cf89ca48b66ba077e7fbcfb7c8a353574db63fac) (cherry picked from commit e2897d15b45012fbdd77ce6c37527c50d7b12d40) (cherry picked from commit 8b49f1195de14bf21ed3dd2d0e15369d183971f4) --- modules/setting/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/setting/repository.go b/modules/setting/repository.go index a6f0ed8833..a722ea2a0f 100644 --- a/modules/setting/repository.go +++ b/modules/setting/repository.go @@ -151,7 +151,7 @@ var ( DefaultPrivate: RepoCreatingLastUserVisibility, DefaultPushCreatePrivate: true, MaxCreationLimit: -1, - PreferredLicenses: []string{"Apache License 2.0", "MIT License"}, + PreferredLicenses: []string{"Apache-2.0", "MIT"}, DisableHTTPGit: false, AccessControlAllowOrigin: "", UseCompatSSHURI: false,