redmine-git-hosting / redmine_git_hosting

A Redmine plugin which makes configuring your own Git hosting easy ;)
http://redmine-git-hosting.io
MIT License
275 stars 116 forks source link

Add ssh port to repository access url #770

Closed bellatriks closed 4 years ago

bellatriks commented 4 years ago

This change is to solve #767

If the ssh port is not changed, the ssh url will have a redundant :22 port number . I'm not an expert in ruby and not able to add a condition to handle this case.

UPD: added a condition to skip the default port