Commit b3b0876e authored by Mathieu Schroeter's avatar Mathieu Schroeter

Add the http(s) command lines in the mails for the new origin when a project...

Add the http(s) command lines in the mails for the new origin when a project was moved in an other namespace.
parent d52a3281
No related merge requests found
......@@ -5,7 +5,11 @@
= link_to project_url(@project) do
= @project.name_with_namespace
%p
To update the remote url in your local repository run:
To update the remote url in your local repository run (for ssh):
%p{ style: "background:#f5f5f5; padding:10px; border:1px solid #ddd" }
git remote set-url origin #{@project.ssh_url_to_repo}
%p
or for http(s):
%p{ style: "background:#f5f5f5; padding:10px; border:1px solid #ddd" }
git remote set-url origin #{@project.http_url_to_repo}
%br
......@@ -4,5 +4,7 @@ The project is now located under
<%= project_url(@project) %>
To update the remote url in your local repository run:
To update the remote url in your local repository run (for ssh):
git remote set-url origin <%= @project.ssh_url_to_repo %>
or for http(s):
git remote set-url origin <%= @project.http_url_to_repo %>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment