]> source.dussan.org Git - redmine.git/commitdiff
scm: git: use to_s for branches at model (#5501)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 25 Oct 2011 14:57:34 +0000 (14:57 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 25 Oct 2011 14:57:34 +0000 (14:57 +0000)
"scm.branches" will extend to have the revision for the branch.
no "to_s" will have a problem.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7653 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/git.rb

index 4ad8b6a16840c4ad3cbdc97c6602361a56f3a46b..6e3356b8553d6fcf1661654683ccd5ca0d1e0066 100644 (file)
@@ -129,7 +129,8 @@ class Repository::Git < Repository
       merge_extra_info(h)
       self.save
     end
-    scm_brs.each do |br|
+    scm_brs.each do |br1|
+      br = br1.to_s
       from_scmid = nil
       from_scmid = h["branches"][br]["last_scmid"] if h["branches"][br]
       h["branches"][br] ||= {}