From 5258e8f63d649b016d5c5d0e37422723bef26dac Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Tue, 5 Dec 2023 22:32:11 +0100 Subject: [PATCH] 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 --- 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 35345529f3..c3da7e6985 100644 --- a/modules/setting/repository.go +++ b/modules/setting/repository.go @@ -150,7 +150,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,