BigW Consortium Gitlab

Commit 14c4db2a by Lin Jen-Shin

Add a comment to explain why newrev should be updated

parent 104bac3d
class GitOperationService
attr_reader :user, :repository
......@@ -28,6 +27,9 @@ class GitOperationService
with_hooks(ref, newrev, oldrev) do |service|
raw_tag = repository.rugged.tags.create(tag_name, newrev, options)
# If raw_tag is an annotated tag, we'll need to update newrev to point
# to the new revision.
service.newrev = raw_tag.target_id
end
end
......
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