lib/ohloh_scm/adapters/git/misc.rb in ohloh_scm-2.2.1 vs lib/ohloh_scm/adapters/git/misc.rb in ohloh_scm-2.2.2

- old
+ new

@@ -68,10 +68,15 @@ def is_merge_commit?(commit) parent_tokens(commit).size > 1 end + def no_tags? + run("cd #{ url } && git tag | head -1").empty? + end + def tags + return [] if no_tags? tag_strings = run("cd #{url} && git show-ref --tags").split(/\n/) tag_strings.map do |tag_string| commit_hash, tag_path = tag_string.split(/\s/) tag_name = tag_path.gsub('refs/tags/', '') [tag_name, commit_hash]