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
fb0f27f3
Commit
fb0f27f3
authored
Apr 19, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CE upstream] fix mirrors
parent
04f1bcef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
app/services/git_tag_push_service.rb
app/services/git_tag_push_service.rb
+6
-1
app/services/projects/update_mirror_service.rb
app/services/projects/update_mirror_service.rb
+10
-1
No files found.
app/services/git_tag_push_service.rb
View file @
fb0f27f3
...
...
@@ -10,7 +10,12 @@ class GitTagPushService < BaseService
SystemHooksService
.
new
.
execute_hooks
(
build_system_push_data
.
dup
,
:tag_push_hooks
)
project
.
execute_hooks
(
@push_data
.
dup
,
:tag_push_hooks
)
project
.
execute_services
(
@push_data
.
dup
,
:tag_push_hooks
)
CreateCommitBuildsService
.
new
.
execute
(
project
,
current_user
,
@push_data
)
CreateCommitBuildsService
.
new
.
execute
(
project
,
current_user
,
@push_data
,
mirror_update:
params
[
:mirror_update
]
)
ProjectCacheWorker
.
perform_async
(
project
.
id
)
true
...
...
app/services/projects/update_mirror_service.rb
View file @
fb0f27f3
...
...
@@ -75,7 +75,16 @@ module Projects
next
if
old_tag_target
==
tag
.
target
GitTagPushService
.
new
.
execute
(
project
,
current_user
,
old_tag_target
,
tag
.
target
,
"
#{
Gitlab
::
Git
::
TAG_REF_PREFIX
}#{
tag
.
name
}
"
,
mirror_update:
true
)
GitTagPushService
.
new
(
project
,
current_user
,
{
oldrev:
old_tag_target
,
newrev:
tag
.
target
,
ref:
"
#{
Gitlab
::
Git
::
TAG_REF_PREFIX
}#{
tag
.
name
}
"
,
mirror_update:
true
}
).
execute
end
fetch_result
...
...
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