]> source.dussan.org Git - redmine.git/commitdiff
scm: git: use hash#dup for extra_info in model fetch_changesets().
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 19 May 2011 02:38:14 +0000 (02:38 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 19 May 2011 02:38:14 +0000 (02:38 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5856 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/git.rb

index 7b229a279231603ecced936e54b56513b147a62f..491b1dd381b2b0192741201ffab755db905770fa 100644 (file)
@@ -108,7 +108,8 @@ class Repository::Git < Repository
   def fetch_changesets
     scm_brs = branches
     return if scm_brs.nil? || scm_brs.empty?
-    h = extra_info || {}
+    h1 = extra_info || {}
+    h  = h1.dup
     h["branches"]       ||= {}
     h["db_consistent"]  ||= {}
     if changesets.count == 0