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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
3b1de66c
Commit
3b1de66c
authored
Nov 25, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
💄
Improved Geo clone instructions
parent
2d6f2e4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
app/assets/javascripts/geo_clone_dialog.js.es6
app/assets/javascripts/geo_clone_dialog.js.es6
+8
-5
app/views/shared/_geo_info_modal.html.haml
app/views/shared/_geo_info_modal.html.haml
+4
-2
No files found.
app/assets/javascripts/geo_clone_dialog.js.es6
View file @
3b1de66c
...
...
@@ -26,11 +26,14 @@
<h3>{{title}}</h3>
</div>
<div class="modal-body">
<p><strong>Step1.</strong> Clone the repository and define <strong>primary's node</strong> repository URL as target to push code:</p>
<slot name="clipboard"></slot>
<pre class="dark" id="geo-info">git clone {{cloneUrlSecondary}}
git remote set-url --push origin {{cloneUrlPrimary | emptyRepo}}</pre>
<p><strong>Step2.</strong> Commit and push code as you normally do, but with increased speed.</p>
<p><strong>Step1.</strong> Clone the repository from your secondary node:</p>
<slot name="clipboard-1"></slot>
<pre class="dark" id="geo-info-1">git clone {{cloneUrlSecondary}}</pre>
<p><strong>Step2.</strong> In your repository's directory define <strong>primary's node</strong> repository URL as target to <strong>push</strong> code:</p>
<slot name="clipboard-2"></slot>
<pre class="dark" id="geo-info-2">git remote set-url --push origin {{cloneUrlPrimary | emptyRepo}}</pre>
<p><strong>Done.</strong> You can now commit and push code as you normally do, but with increased speed.</p>
</div>
</div>
</div>
...
...
app/views/shared/_geo_info_modal.html.haml
View file @
3b1de66c
#geo_clone
{
data:
{
'clone-url-secondary'
:
h
(
default_url_to_repo
(
project
)),
'clone-url-primary'
:
h
(
geo_primary_default_url_to_repo
(
project
))}}
%geo-clone-dialog
{
id:
'modal_geo_info'
,
title:
'How to work faster with Geo'
}
%span
{
slot:
'clipboard'
}
=
clipboard_button
(
clipboard_target:
'pre#geo-info'
)
%span
{
slot:
'clipboard-1'
}
=
clipboard_button
(
clipboard_target:
'pre#geo-info-1'
)
%span
{
slot:
'clipboard-2'
}
=
clipboard_button
(
clipboard_target:
'pre#geo-info-2'
)
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