diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-19 02:38:14 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-19 02:38:14 +0000 |
commit | fe7e8fa59071ed0dfd162e0ca92887b0c8244fb6 (patch) | |
tree | 479b0422d151749685caeddd7d283e0a4ce8ae91 /app/models/repository/git.rb | |
parent | 24d58543be1f38956da20e441e0b90bf74feb4de (diff) | |
download | redmine-fe7e8fa59071ed0dfd162e0ca92887b0c8244fb6.tar.gz redmine-fe7e8fa59071ed0dfd162e0ca92887b0c8244fb6.zip |
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
Diffstat (limited to 'app/models/repository/git.rb')
-rw-r--r-- | app/models/repository/git.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 7b229a279..491b1dd38 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -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 |