mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	bug fixed
This commit is contained in:
		@@ -30,6 +30,9 @@ gogs serv provide access auth for repositories`,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// for command: ./gogs update
 | 
					// for command: ./gogs update
 | 
				
			||||||
func runUpdate(c *cli.Context) {
 | 
					func runUpdate(c *cli.Context) {
 | 
				
			||||||
 | 
						base.NewConfigContext()
 | 
				
			||||||
 | 
						models.LoadModelsConfig()
 | 
				
			||||||
 | 
						models.NewEngine()
 | 
				
			||||||
	//level := "0"
 | 
						//level := "0"
 | 
				
			||||||
	//os.MkdirAll("log", os.ModePerm)
 | 
						//os.MkdirAll("log", os.ModePerm)
 | 
				
			||||||
	//log.NewLogger(10000, "file", fmt.Sprintf(`{"level":%s,"filename":"%s"}`, level, "log/serv.log"))
 | 
						//log.NewLogger(10000, "file", fmt.Sprintf(`{"level":%s,"filename":"%s"}`, level, "log/serv.log"))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user