mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	actually use SshPort variable
SshPort is defined (SSH_PORT) but the value is not actually used (just compared to default port 22).
This commit is contained in:
		@@ -162,7 +162,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
 | 
				
			|||||||
		ctx.Data["BranchName"] = ""
 | 
							ctx.Data["BranchName"] = ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if setting.SshPort != 22 {
 | 
							if setting.SshPort != 22 {
 | 
				
			||||||
			ctx.Repo.CloneLink.SSH = fmt.Sprintf("ssh://%s@%s/%s/%s.git", setting.RunUser, setting.Domain, user.LowerName, repo.LowerName)
 | 
								ctx.Repo.CloneLink.SSH = fmt.Sprintf("ssh://%s@%s:%s/%s/%s.git", setting.RunUser, setting.Domain, setting.SshPort, user.LowerName, repo.LowerName)
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			ctx.Repo.CloneLink.SSH = fmt.Sprintf("%s@%s:%s/%s.git", setting.RunUser, setting.Domain, user.LowerName, repo.LowerName)
 | 
								ctx.Repo.CloneLink.SSH = fmt.Sprintf("%s@%s:%s/%s.git", setting.RunUser, setting.Domain, user.LowerName, repo.LowerName)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user