[refs #878] fixed last value

This commit is contained in:
Alexander Machehin 2013-01-31 23:44:02 +06:00
parent 7185a46ed7
commit 927c352f8a
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class Project < ActiveRecord::Base
if repo.branches_and_tags.map(&:name).include?(treeish || default_branch)
treeish || default_branch
else
repo.branches_and_tags[0].try(:name) || 'master'
repo.branches_and_tags[0].try(:name) || default_branch
end
end