mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
9 lines
284 B
Ruby
9 lines
284 B
Ruby
class PostCommitService < BaseService
|
|
def execute(sha, branch)
|
|
commit = repository.commit(sha)
|
|
full_ref = 'refs/heads/' + branch
|
|
old_sha = commit.parent_id || Gitlab::Git::BLANK_SHA
|
|
GitPushService.new.execute(project, current_user, old_sha, sha, full_ref)
|
|
end
|
|
end
|