mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Differentiate between push and pull mirror sync in progress (#27390)
				
					
				
			Previously, if you had both a push and a pull mirror, the message did not clarify if you've accidentally synchronized the wrong one. Additionally fixed two typos that were encountered while debugging. ## Screenshots  
This commit is contained in:
		@@ -285,7 +285,7 @@ func SettingsPost(ctx *context.Context) {
 | 
			
		||||
 | 
			
		||||
		mirror_service.AddPullMirrorToQueue(repo.ID)
 | 
			
		||||
 | 
			
		||||
		ctx.Flash.Info(ctx.Tr("repo.settings.mirror_sync_in_progress"))
 | 
			
		||||
		ctx.Flash.Info(ctx.Tr("repo.settings.pull_mirror_sync_in_progress", repo.OriginalURL))
 | 
			
		||||
		ctx.Redirect(repo.Link() + "/settings")
 | 
			
		||||
 | 
			
		||||
	case "push-mirror-sync":
 | 
			
		||||
@@ -302,7 +302,7 @@ func SettingsPost(ctx *context.Context) {
 | 
			
		||||
 | 
			
		||||
		mirror_service.AddPushMirrorToQueue(m.ID)
 | 
			
		||||
 | 
			
		||||
		ctx.Flash.Info(ctx.Tr("repo.settings.mirror_sync_in_progress"))
 | 
			
		||||
		ctx.Flash.Info(ctx.Tr("repo.settings.push_mirror_sync_in_progress", m.RemoteAddress))
 | 
			
		||||
		ctx.Redirect(repo.Link() + "/settings")
 | 
			
		||||
 | 
			
		||||
	case "push-mirror-update":
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user