Skip to content
Snippets Groups Projects
Commit b3b7a4f1 authored by Marin Jankovski's avatar Marin Jankovski Committed by Wes Gurney
Browse files

Replace remote url on selection.

parent d1cc35cc
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
Loading
Loading
@@ -35,6 +35,7 @@ $ ->
$('a, button', scope).removeClass 'active'
$(@).addClass 'active'
$('#project_clone', scope).val $(@).data 'clone'
$(".clone").text("").append 'git remote add origin ' + $(@).data 'clone'
 
# Ref switcher
$('.project-refs-select').on 'change', ->
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment