Commit 7c88c4af authored by Stan Hu's avatar Stan Hu

No need to look up commit SHA since Bitbucket has a full-length SHA

parent 614206d6
......@@ -178,8 +178,6 @@ module Gitlab
source_branch_sha = pull_request.source_branch_sha
target_branch_sha = pull_request.target_branch_sha
source_branch_sha = project.repository.commit(source_branch_sha)&.sha || source_branch_sha
target_branch_sha = project.repository.commit(target_branch_sha)&.sha || target_branch_sha
author_id = gitlab_user_id(pull_request.author_email)
attributes = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment