mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Fix data-race problems in git module (quick patch) (#19934)
* Fix data-race problems in git module * use HomeDir instead of setting.RepoRootPath Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		| @@ -102,7 +102,7 @@ func GlobalInitInstalled(ctx context.Context) { | ||||
| 		log.Fatal("Gitea is not installed") | ||||
| 	} | ||||
|  | ||||
| 	mustInitCtx(ctx, git.InitWithConfigSync) | ||||
| 	mustInitCtx(ctx, git.InitOnceWithSync) | ||||
| 	log.Info("Git Version: %s (home: %s)", git.VersionInfo(), git.HomeDir()) | ||||
|  | ||||
| 	git.CheckLFSVersion() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user