BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
91e112ff
Commit
91e112ff
authored
Sep 13, 2013
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace remote url on selection.
parent
e1ca9de0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
project.js.coffee
app/assets/javascripts/project.js.coffee
+1
-0
empty.html.haml
app/views/projects/empty.html.haml
+4
-2
No files found.
app/assets/javascripts/project.js.coffee
View file @
91e112ff
...
...
@@ -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'
,
->
...
...
app/views/projects/empty.html.haml
View file @
91e112ff
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment