mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 07:09:58 +01:00
* Can disable GIT interactions by HTTP protocol * rename variable + fix wiki link * missing space
This commit is contained in:
@@ -118,6 +118,7 @@ var (
|
||||
MirrorQueueLength int
|
||||
PullRequestQueueLength int
|
||||
PreferredLicenses []string
|
||||
DisableHTTPGit bool
|
||||
|
||||
// Repository editor settings
|
||||
Editor struct {
|
||||
@@ -494,6 +495,7 @@ func NewContext() {
|
||||
|
||||
// Determine and create root git repository path.
|
||||
sec = Cfg.Section("repository")
|
||||
Repository.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool()
|
||||
RepoRootPath = sec.Key("ROOT").MustString(path.Join(homeDir, "gogs-repositories"))
|
||||
forcePathSeparator(RepoRootPath)
|
||||
if !filepath.IsAbs(RepoRootPath) {
|
||||
|
||||
Reference in New Issue
Block a user