From 206c8c45f23500567ccb2a8bc9eab213edb4d45b Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Wed, 30 Nov 2016 11:14:16 +0100 Subject: [PATCH] Dropped the template version check --- cmd/web.go | 15 --------------- templates/.VERSION | 1 - 2 files changed, 16 deletions(-) delete mode 100644 templates/.VERSION diff --git a/cmd/web.go b/cmd/web.go index c53f518af..2b98c0656 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -76,21 +76,6 @@ type VerChecker struct { // checkVersion checks if binary matches the version of templates files. func checkVersion() { - // Templates. - data, err := ioutil.ReadFile(setting.StaticRootPath + "/templates/.VERSION") - if err != nil { - log.Fatal(4, "Fail to read 'templates/.VERSION': %v", err) - } - tplVer := string(data) - if tplVer != setting.AppVer { - if version.Compare(tplVer, setting.AppVer, ">") { - log.Fatal(4, "Binary version is lower than template file version, did you forget to recompile Gogs?") - } else { - log.Fatal(4, "Binary version is higher than template file version, did you forget to update template files?") - } - } - - // Check dependency version. checkers := []VerChecker{ {"github.com/go-xorm/xorm", func() string { return xorm.Version }, "0.5.5"}, {"github.com/go-macaron/binding", binding.Version, "0.3.2"}, diff --git a/templates/.VERSION b/templates/.VERSION deleted file mode 100644 index 927f673c5..000000000 --- a/templates/.VERSION +++ /dev/null @@ -1 +0,0 @@ -0.9.99.0915 \ No newline at end of file