Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
heptapod
heptapod
Commits
92fedb897401
Commit
13f9a9fb
authored
Dec 16, 2020
by
Raphaël Gomès
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote-mirrors: honor "only mirror protected branches" setting
--HG-- branch : heptapod
parent
39ba4889905a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/services/projects/update_remote_mirror_service.rb
app/services/projects/update_remote_mirror_service.rb
+1
-1
No files found.
app/services/projects/update_remote_mirror_service.rb
View file @
92fedb89
...
...
@@ -43,7 +43,7 @@ def update_mirror(remote_mirror)
send_lfs_objects!
(
remote_mirror
)
unless
project
.
mercurial?
branch_names
=
nil
if
project
.
mercurial?
if
project
.
mercurial?
and
remote_mirror
.
only_protected_branches
# For now only pull protected branches to prevent pulling topics.
# Later on, this will become a (non-default?) option.
branch_names
=
project
.
repository
.
branches
.
map
{
|
b
|
b
.
name
}.
select
do
|
name
|
...
...
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