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
ef93cb23
Commit
ef93cb23
authored
Feb 01, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add info on using both push/pull repository mirroring
[ci skip]
parent
ce33c294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
doc/workflow/repository_mirroring.md
doc/workflow/repository_mirroring.md
+15
-2
No files found.
doc/workflow/repository_mirroring.md
View file @
ef93cb23
...
@@ -13,7 +13,7 @@ commits will be visible in the project's activity feed.
...
@@ -13,7 +13,7 @@ commits will be visible in the project's activity feed.
Users with at least
[
developer access
][
perms
]
to the project can also force an
Users with at least
[
developer access
][
perms
]
to the project can also force an
immediate update with a click of a button.
immediate update with a click of a button.
A few things to consider:
A few things
/limitations
to consider:
-
The repository must be accessible over
`http://`
,
`https://`
or
`git://`
.
-
The repository must be accessible over
`http://`
,
`https://`
or
`git://`
.
-
If your HTTP repository is not publicly accessible, add authentication
-
If your HTTP repository is not publicly accessible, add authentication
...
@@ -94,7 +94,20 @@ While mirrors update once an hour, you can force an update (either **push** or
...
@@ -94,7 +94,20 @@ While mirrors update once an hour, you can force an update (either **push** or
You can adjust the synchronization times for the repository mirroring if you
You can adjust the synchronization times for the repository mirroring if you
have access to the GitLab server. For more information, see
have access to the GitLab server. For more information, see
[
the administration documentation
](
../administration/cron_jobs.md#adjusting-synchronization-times-for-repository-mirroring
)
.
[
the administration documentation
][
sync-times
]
.
## Using both mirroring methods at the same time
Currently there is no bidirectional support without conflicts. That means that
if you configure a repository to both pull and push to a second one, there is
no guarantee that it will update correctly on both remotes. You could
[
adjust the synchronization times
][
sync-times
]
to a very low value and hope
that no conflicts occur during the pull/push window time, but that is not a
solution to consider on a production environment. Another thing you could try
is
[
configuring custom Git hooks
][
hooks
]
on the GitLab server.
[
ee-51
]:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/51
[
ee-51
]:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/51
[
perms
]:
../user/permissions.md
[
perms
]:
../user/permissions.md
[
sync-times
]:
../administration/cron_jobs.md#adjusting-synchronization-times-for-repository-mirroring
[
hooks
]:
https://docs.gitlab.com/ee/administration/custom_hooks.html
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