Files
gitlabhq/app/services/post_commit_service.rb
T
2015-07-16 16:03:07 +02:00

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