Add the http(s) command lines in the mails for the new origin when a project was moved in an other namespace.
This commit is contained in:
parent
d52a3281dc
commit
b3b0876e98
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||||
<%= 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 %>
|
||||||
|
|
Loading…
Reference in a new issue