##// END OF EJS Templates
scm: return nil at model default_branch and override at git model (#8458, #6713)....
Toshi MARUYAMA -
r6010:5cfc42982b96
parent child
Show More
@@ -119,7 +119,7 class Repository < ActiveRecord::Base
119 end
119 end
120
120
121 def default_branch
121 def default_branch
122 scm.default_branch
122 nil
123 end
123 end
124
124
125 def properties(path, identifier=nil)
125 def properties(path, identifier=nil)
@@ -75,6 +75,10 class Repository::Git < Repository
75 scm.tags
75 scm.tags
76 end
76 end
77
77
78 def default_branch
79 scm.default_branch
80 end
81
78 def find_changeset_by_name(name)
82 def find_changeset_by_name(name)
79 return nil if name.nil? || name.empty?
83 return nil if name.nil? || name.empty?
80 e = changesets.find(:first, :conditions => ['revision = ?', name.to_s])
84 e = changesets.find(:first, :conditions => ['revision = ?', name.to_s])
General Comments 0
You need to be logged in to leave comments. Login now