mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Support SSH for go get (#24664)
fix #12192 Support SSH for go get --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: mfk <mfk@hengwei.com.cn> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		@@ -36,6 +36,7 @@ var (
 | 
			
		||||
		DisableHTTPGit                          bool
 | 
			
		||||
		AccessControlAllowOrigin                string
 | 
			
		||||
		UseCompatSSHURI                         bool
 | 
			
		||||
		GoGetCloneURLProtocol                   string
 | 
			
		||||
		DefaultCloseIssuesViaCommitsInAnyBranch bool
 | 
			
		||||
		EnablePushCreateUser                    bool
 | 
			
		||||
		EnablePushCreateOrg                     bool
 | 
			
		||||
@@ -273,6 +274,7 @@ func loadRepositoryFrom(rootCfg ConfigProvider) {
 | 
			
		||||
	sec := rootCfg.Section("repository")
 | 
			
		||||
	Repository.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool()
 | 
			
		||||
	Repository.UseCompatSSHURI = sec.Key("USE_COMPAT_SSH_URI").MustBool()
 | 
			
		||||
	Repository.GoGetCloneURLProtocol = sec.Key("GO_GET_CLONE_URL_PROTOCOL").MustString("https")
 | 
			
		||||
	Repository.MaxCreationLimit = sec.Key("MAX_CREATION_LIMIT").MustInt(-1)
 | 
			
		||||
	Repository.DefaultBranch = sec.Key("DEFAULT_BRANCH").MustString(Repository.DefaultBranch)
 | 
			
		||||
	RepoRootPath = sec.Key("ROOT").MustString(path.Join(AppDataPath, "gitea-repositories"))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user