Skip to content

Instantly share code, notes, and snippets.

@allykzam
Created July 22, 2014 15:42
Show Gist options
  • Save allykzam/248118425005dee194cb to your computer and use it in GitHub Desktop.
Save allykzam/248118425005dee194cb to your computer and use it in GitHub Desktop.
GitLab SSH URL change
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