@@ -87,10 +87,10 class Repository::Git < Repository | |||
|
87 | 87 | end |
|
88 | 88 | |
|
89 | 89 | def find_changeset_by_name(name) |
|
90 | return nil if name.nil? || name.empty? | |
|
91 |
|
|
|
92 | return e if e | |
|
93 | changesets.find(:first, :conditions => ['scmid LIKE ?', "#{name}%"]) | |
|
90 | if name.present? | |
|
91 | changesets.where(:revision => name.to_s).first || | |
|
92 | changesets.where('scmid LIKE ?', "#{name}%").first | |
|
93 | end | |
|
94 | 94 | end |
|
95 | 95 | |
|
96 | 96 | def entries(path=nil, identifier=nil) |
General Comments 0
You need to be logged in to leave comments.
Login now