lib/autobuild/import/git.rb
# Retrieve the tags of this packages as a hash mapping to the commit id
Retrieve the tags of this packages as a hash mapping to the commit id
Retrieve the tags of this packages as a hash mapping to the commit id
def tags(package)
            Dir.chdir(package.importdir) do
                `git fetch --tags -q`
                tag_list = `git show-ref --tags`
                tag_list = tag_list.split("\n")
                @tags ||= Hash.new
                tag_list.each do |entry|
                    commit_to_tag = entry.split(" ")
                    @tags[commit_to_tag[1].sub("refs/tags/","")] = commit_to_tag[0]
                end
                @tags
            end
        end
def tags ( package ) Dir . chdir ( package . importdir ) do ` git fetch --tags -q ` tag_list = ` git show-ref --tags ` tag_list = tag_list . split ( "\n" ) @tags ||= Hash . new tag_list . each do | entry | commit_to_tag = entry . split ( " " ) @tags [ commit_to_tag [ 1 ] . sub ( "refs/tags/" , "" ) ] = commit_to_tag [ 0 ] end @tags end end
Retrieve the tags of this packages as a hash mapping to the commit id
Retrieve the tags of this packages as a hash mapping to the commit id
package
<not_specific>