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
7a86a989
Commit
7a86a989
authored
Feb 19, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed merge conflict: git_push_service.rb
parent
bde2837e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
app/services/git_push_service.rb
app/services/git_push_service.rb
+10
-18
No files found.
app/services/git_push_service.rb
View file @
7a86a989
...
...
@@ -49,31 +49,23 @@ class GitPushService < BaseService
protected
<<<<<<<
HEAD
branch_name
=
Gitlab
::
Git
.
ref_name
(
ref
)
mirror_update
=
project
.
mirror?
&&
project
.
repository
.
up_to_date_with_upstream?
(
branch_name
)
EventCreateService
.
new
.
push
(
project
,
user
,
@push_data
)
project
.
execute_hooks
(
@push_data
.
dup
,
:push_hooks
)
project
.
execute_services
(
@push_data
.
dup
,
:push_hooks
)
if
Gitlab
.
config
.
elasticsearch
.
enabled
project
.
repository
.
index_commits
(
from_rev:
oldrev
,
to_rev:
newrev
)
project
.
repository
.
index_blobs
(
from_rev:
oldrev
,
to_rev:
newrev
)
end
CreateCommitBuildsService
.
new
.
execute
(
project
,
@user
,
@push_data
,
mirror_update:
mirror_update
)
ProjectCacheWorker
.
perform_async
(
project
.
id
)
=======
def
update_merge_requests
@project
.
update_merge_requests
(
params
[
:oldrev
],
params
[
:newrev
],
params
[
:ref
],
current_user
)
mirror_update
=
@project
.
mirror?
&&
@project
.
repository
.
up_to_date_with_upstream?
(
branch_name
)
EventCreateService
.
new
.
push
(
@project
,
current_user
,
build_push_data
)
@project
.
execute_hooks
(
build_push_data
.
dup
,
:push_hooks
)
@project
.
execute_services
(
build_push_data
.
dup
,
:push_hooks
)
CreateCommitBuildsService
.
new
.
execute
(
@project
,
current_user
,
build_push_data
)
index_commits_blobs
if
Gitlab
.
config
.
elasticsearch
.
enabled
CreateCommitBuildsService
.
new
.
execute
(
@project
,
current_user
,
build_push_data
,
mirror_update:
mirror_update
)
ProjectCacheWorker
.
perform_async
(
@project
.
id
)
>>>>>>>
a8b32b1e604cd59474b84be9681104579447651d
end
def
index_commits_blobs
@project
.
repository
.
index_commits
(
from_rev:
params
[
:oldrev
],
to_rev:
params
[
:newrev
])
@project
.
repository
.
index_blobs
(
from_rev:
params
[
:oldrev
],
to_rev:
params
[
:newrev
])
end
def
process_default_branch
...
...
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