Fix bug when it has been switched to tag.

This commit is contained in:
Sato Hiroyuki 2013-02-05 14:59:13 +09:00
parent 8ff5cf9cd5
commit df85c9c06a
2 changed files with 5 additions and 2 deletions

View file

@ -113,7 +113,7 @@ module Gitlab
def include_ref?(commit)
heads = commit.refs.select do |ref|
ref.is_a?(Grit::Head) or ref.is_a?(Grit::Remote)
ref.is_a?(Grit::Head) or ref.is_a?(Grit::Remote) or ref.is_a?(Grit::Tag)
end
heads.map! do |head|