summaryrefslogtreecommitdiffstats
path: root/modules/base/conf.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-26 09:22:08 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-26 09:22:08 -0400
commit7ab94fe816bd726c995f2937a040c3d8c7898205 (patch)
treefcf84c1e759c158f461af3cc9f7236443f4992d6 /modules/base/conf.go
parent409e4cde7a379bbdbe53367b3726f64b80aed0eb (diff)
downloadgitea-7ab94fe816bd726c995f2937a040c3d8c7898205.tar.gz
gitea-7ab94fe816bd726c995f2937a040c3d8c7898205.zip
Fix issue on windows
Diffstat (limited to 'modules/base/conf.go')
-rw-r--r--modules/base/conf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 0fb1ccdcf6..2e56883937 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -80,7 +80,7 @@ func ExecDir() (string, error) {
if err != nil {
return "", err
}
- return path.Dir(p), nil
+ return path.Dir(strings.Replace(p, "\\", "/", -1)), nil
}
var logLevels = map[string]string{