Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
app/assets/javascripts/project.js.coffee
app/assets/javascripts/project.js.coffee
+1
-0
app/views/projects/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