Created
July 22, 2014 15:42
-
-
Save allykzam/248118425005dee194cb to your computer and use it in GitHub Desktop.
GitLab SSH URL change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb | |
index f55e69c..b6f1ad9 100644 | |
--- a/config/initializers/1_settings.rb | |
+++ b/config/initializers/1_settings.rb | |
@@ -10,11 +10,7 @@ class Settings < Settingslogic | |
private | |
def build_gitlab_shell_ssh_path_prefix | |
- if gitlab_shell.ssh_port != 22 | |
- "ssh://#{gitlab_shell.ssh_user}@#{gitlab_shell.ssh_host}:#{gitlab_shell.ssh_port}/" | |
- else | |
- "#{gitlab_shell.ssh_user}@#{gitlab_shell.ssh_host}:" | |
- end | |
+ "#{gitlab_shell.ssh_host}:" | |
end | |
def build_gitlab_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment