scm: git: use hash#dup for extra_info in model fetch_changesets().

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5856 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-19 02:38:14 +00:00
parent 24d58543be
commit fe7e8fa590
1 changed files with 2 additions and 1 deletions

View 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