mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	* Fix `dump-repo` git init * Fix wrong error type for NullDownloader
This commit is contained in:
		@@ -10,6 +10,7 @@ import (
 | 
			
		||||
	"strings"
 | 
			
		||||
 | 
			
		||||
	"code.gitea.io/gitea/modules/convert"
 | 
			
		||||
	"code.gitea.io/gitea/modules/git"
 | 
			
		||||
	"code.gitea.io/gitea/modules/log"
 | 
			
		||||
	base "code.gitea.io/gitea/modules/migration"
 | 
			
		||||
	"code.gitea.io/gitea/modules/setting"
 | 
			
		||||
@@ -83,6 +84,11 @@ func runDumpRepository(ctx *cli.Context) error {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// migrations.GiteaLocalUploader depends on git module
 | 
			
		||||
	if err := git.InitSimple(context.Background()); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	log.Info("AppPath: %s", setting.AppPath)
 | 
			
		||||
	log.Info("AppWorkPath: %s", setting.AppWorkPath)
 | 
			
		||||
	log.Info("Custom path: %s", setting.CustomPath)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user