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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
ed99296e
Commit
ed99296e
authored
Mar 12, 2019
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move some logic to a helper method in GitPushService
parent
4e045cd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
app/services/git_push_service.rb
app/services/git_push_service.rb
+13
-10
No files found.
app/services/git_push_service.rb
View file @
ed99296e
...
...
@@ -22,6 +22,19 @@ class GitPushService < BaseService
# 6. Checks if the project's main language has changed
#
def
execute
update_commits
execute_related_hooks
perform_housekeeping
update_remote_mirrors
update_caches
update_signatures
end
protected
def
update_commits
project
.
repository
.
after_create
if
project
.
empty_repo?
project
.
repository
.
after_push_commit
(
branch_name
)
...
...
@@ -54,14 +67,6 @@ class GitPushService < BaseService
# .gitattributes file
update_gitattributes
if
default_branch?
end
execute_related_hooks
perform_housekeeping
update_remote_mirrors
update_caches
update_signatures
end
def
update_gitattributes
...
...
@@ -123,8 +128,6 @@ class GitPushService < BaseService
end
end
protected
def
update_remote_mirrors
return
unless
project
.
has_remote_mirror?
...
...
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