summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-03-19 12:30:00 -0700
committerStan Hu <stanhu@gmail.com>2016-03-19 22:47:27 -0700
commit68fa4de6e39dfa036bb74eeb01fa569c716aacdf (patch)
treeabe48e163c3f6dfe6d199410617ec71b38a0a82e /app/helpers
parent01fe50a72513a88f2168c8c0a649661b1382a42b (diff)
downloadgitlab-ce-68fa4de6e39dfa036bb74eeb01fa569c716aacdf.tar.gz
Make HTTP(s) label consistent on clone bar
Sites that use http:// for the external_url should always display HTTP on the clone bar. Similarly, sites that use https:// should show HTTPS.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/projects_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 5473419ef24..322a7021fdd 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -209,7 +209,7 @@ module ProjectsHelper
def default_clone_protocol
if !current_user || current_user.require_ssh_key?
- "http"
+ gitlab_config.protocol
else
"ssh"
end