mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix #218
This commit is contained in:
		@@ -47,7 +47,7 @@ func checkVersion() {
 | 
			
		||||
		log.Fatal("Fail to read 'templates/VERSION': %v", err)
 | 
			
		||||
	}
 | 
			
		||||
	if string(data) != setting.AppVer {
 | 
			
		||||
		log.Fatal("Binary and static file version does not match, did you forget to recompile?")
 | 
			
		||||
		log.Fatal("Binary and template file version does not match, did you forget to recompile?")
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -64,8 +64,8 @@ func newMartini() *martini.ClassicMartini {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func runWeb(*cli.Context) {
 | 
			
		||||
	checkVersion()
 | 
			
		||||
	routers.GlobalInit()
 | 
			
		||||
	checkVersion()
 | 
			
		||||
 | 
			
		||||
	m := newMartini()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user