mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
Minor fix for PR #3667
This commit is contained in:
@@ -118,7 +118,7 @@ var (
|
||||
MirrorQueueLength int
|
||||
PullRequestQueueLength int
|
||||
PreferredLicenses []string
|
||||
DisableHTTPGit bool
|
||||
DisableHTTPGit bool `ini:"DISABLE_HTTP_GIT"`
|
||||
|
||||
// Repository editor settings
|
||||
Editor struct {
|
||||
@@ -495,7 +495,6 @@ 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