diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2013-09-13 12:12:42 +0400 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2013-09-13 12:12:42 +0400 |
commit | 91e112ffe2a2c16b3b5e2cd4ce032cb9fa769660 (patch) | |
tree | 52225346f35ede601f03849dcea805b347584097 /app/views/projects/empty.html.haml | |
parent | e1ca9de0dabb9d1da13073110072b3327280eb55 (diff) |
Replace remote url on selection.
Diffstat (limited to 'app/views/projects/empty.html.haml')
-rw-r--r-- | app/views/projects/empty.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml index 99e334cc6b8..001857cefda 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -29,7 +29,8 @@ touch README git add README git commit -m 'first commit' - git remote add origin #{@project.url_to_repo} + %span.clone= "git remote add origin #{@project.url_to_repo}" + :preserve git push -u origin master %fieldset @@ -37,7 +38,8 @@ %pre.dark :preserve cd existing_git_repo - git remote add origin #{@project.url_to_repo} + %span.clone= "git remote add origin #{@project.url_to_repo}" + :preserve git push -u origin master - if can? current_user, :remove_project, @project |