Add work path CLI option (#6922)

Makes it possible to set the work path as a CLI option instead of
relying on environment variables which are somewhat opaque
This commit is contained in:
zeripath authored and techknowlogick committed 2019-05-14 11:20:35 -04:00
1 parent 488d34691a
commit e55c874dd2
6 files changed
+25 -9

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ func runPR() {
if err != nil {
log.Fatal(err)
}
setting.SetCustomPathAndConf("", "")
setting.SetCustomPathAndConf("", "", "")
setting.NewContext()
setting.RepoRootPath, err = ioutil.TempDir(os.TempDir(), "repos")