mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	* gitea dump: include version * Check InstallLock
This commit is contained in:
		| @@ -66,6 +66,10 @@ func fatal(format string, args ...interface{}) { | ||||
|  | ||||
| func runDump(ctx *cli.Context) error { | ||||
| 	setting.NewContext() | ||||
| 	if !setting.InstallLock { | ||||
| 		log.Error("Is '%s' really the right config path?\n", setting.CustomConf) | ||||
| 		return fmt.Errorf("gitea is not initialized") | ||||
| 	} | ||||
| 	setting.NewServices() // cannot access session settings otherwise | ||||
|  | ||||
| 	err := models.SetEngine() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user