Skip to content
Snippets Groups Projects
Commit 14c4db2a authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Add a comment to explain why newrev should be updated

parent 104bac3d
No related branches found
No related tags found
No related merge requests found
class GitOperationService
attr_reader :user, :repository
 
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment