Fix bug related to log

This commit is contained in:
Unknown 2014-04-06 13:41:58 -04:00
parent 794cd27db3
commit 6a16866f4e
4 changed files with 6 additions and 4 deletions

View file

@ -288,7 +288,7 @@ func NewConfigContext() {
if err != nil {
qlog.Fatalf("Fail to get home directory): %v\n", err)
}
RepoRootPath = Cfg.MustValue("repository", "ROOT", filepath.Join(homeDir, "git/gogs-repositories"))
RepoRootPath = Cfg.MustValue("repository", "ROOT", filepath.Join(homeDir, "gogs-repositories"))
if err = os.MkdirAll(RepoRootPath, os.ModePerm); err != nil {
qlog.Fatalf("Fail to create RepoRootPath(%s): %v\n", RepoRootPath, err)
}