diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-07-27 18:26:29 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2016-07-28 19:24:47 +0300 |
commit | d00679d54f2bbaab9d6963c3b871a03ab8a3d7d6 (patch) | |
tree | 06bd76b683638e149566599ea423ced5c21324a5 /app/services/git_tag_push_service.rb | |
parent | b24ccd4a67f60731ce2eb6be0129e8cf7228263d (diff) |
Update to gitlab_git 10.4.1 and take advantage of preserved Ref objects
Diffstat (limited to 'app/services/git_tag_push_service.rb')
-rw-r--r-- | app/services/git_tag_push_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/git_tag_push_service.rb b/app/services/git_tag_push_service.rb index 58573078048..969530c4fdc 100644 --- a/app/services/git_tag_push_service.rb +++ b/app/services/git_tag_push_service.rb @@ -26,8 +26,8 @@ class GitTagPushService < BaseService unless Gitlab::Git.blank_ref?(params[:newrev]) tag_name = Gitlab::Git.ref_name(params[:ref]) tag = project.repository.find_tag(tag_name) - - if tag && tag.target == params[:newrev] + + if tag && tag.object_sha == params[:newrev] commit = project.commit(tag.target) commits = [commit].compact message = tag.message |