Procházet zdrojové kódy

fix check template version

tags/v0.9.99
Unknwon před 8 roky
rodič
revize
cc0d963f75
3 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 1
    1
      cmd/web.go
  2. 1
    1
      gogs.go
  3. 1
    1
      templates/.VERSION

+ 1
- 1
cmd/web.go Zobrazit soubor

@@ -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)
}

+ 1
- 1
gogs.go Zobrazit soubor

@@ -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())

+ 1
- 1
templates/.VERSION Zobrazit soubor

@@ -1 +1 @@
0.6.3.0801 Beta
0.6.3.0802 Beta

Načítá se…
Zrušit
Uložit