Skip to content
Snippets Groups Projects

Add the username of the current user to the HTTP(S) clone URL

Merged Jan Christophersen requested to merge (removed):1937-https-clone-url-username into master
All threads resolved!
Files
8
@@ -34,7 +34,7 @@ def http_clone_button(project, placement = 'right', append_link: true)
content_tag (append_link ? :a : :span), protocol,
class: klass,
href: (project.http_url_to_repo if append_link),
href: (project.http_url_to_repo(current_user) if append_link),
data: {
html: true,
placement: placement,
Loading