summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-02 11:36:18 +0800
committerUnknwon <u@gogs.io>2015-08-02 11:36:18 +0800
commitcc0d963f75593cb37a84077408b0bd2abdc6e29b (patch)
tree8fd7da5b2deca681cd8ac23fae25715fd897a365
parent03011e31fe3afebeca78ccd31a891cbba69f06d5 (diff)
downloadgitea-cc0d963f75593cb37a84077408b0bd2abdc6e29b.tar.gz
gitea-cc0d963f75593cb37a84077408b0bd2abdc6e29b.zip
fix check template version
-rw-r--r--cmd/web.go2
-rw-r--r--gogs.go2
-rw-r--r--templates/.VERSION2
3 files changed, 3 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 8a566451ea..dfad0a3580 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -69,7 +69,7 @@ type VerChecker struct {
// checkVersion checks if binary matches the version of templates files.
func checkVersion() {
// Templates.
- data, err := ioutil.ReadFile(path.Join(setting.StaticRootPath, "templates/.VERSION"))
+ data, err := ioutil.ReadFile(setting.StaticRootPath + "/templates/.VERSION")
if err != nil {
log.Fatal(4, "Fail to read 'templates/.VERSION': %v", err)
}
diff --git a/gogs.go b/gogs.go
index a0a215054d..712f86061a 100644
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.6.3.0801 Beta"
+const APP_VER = "0.6.3.0802 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
diff --git a/templates/.VERSION b/templates/.VERSION
index 2aa534a502..8c77c21638 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.6.3.0801 Beta \ No newline at end of file
+0.6.3.0802 Beta \ No newline at end of file