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
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
= link_to project_url(@project) do = link_to project_url(@project) do
= @project.name_with_namespace = @project.name_with_namespace
%p %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" } %p{ style: "background:#f5f5f5; padding:10px; border:1px solid #ddd" }
git remote set-url origin #{@project.ssh_url_to_repo} 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 %br
...@@ -4,5 +4,7 @@ The project is now located under ...@@ -4,5 +4,7 @@ The project is now located under
<%= project_url(@project) %> <%= 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 %> 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