summaryrefslogtreecommitdiffstats
path: root/app/models/repository
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-11-21 07:44:29 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-11-21 07:44:29 +0000
commit5d8d38aa609bb65c0d29a9c9047b482480043508 (patch)
tree7584306d51c46cfb00216af3a4ec52625ec93e18 /app/models/repository
parent7048f666199b36266dbc288da3c6ac8220c24b9a (diff)
downloadredmine-5d8d38aa609bb65c0d29a9c9047b482480043508.tar.gz
redmine-5d8d38aa609bb65c0d29a9c9047b482480043508.zip
scm: git: fix changesets aren't read after clear_changesets call (#12409)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10856 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r--app/models/repository/git.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb
index 064a67494..037be94e5 100644
--- a/app/models/repository/git.rb
+++ b/app/models/repository/git.rb
@@ -255,4 +255,14 @@ class Repository::Git < Repository
:order => 'committed_on DESC'
)
end
+
+ def clear_extra_info_of_changesets
+ v = extra_info["extra_report_last_commit"]
+ write_attribute(:extra_info, nil)
+ h = {}
+ h["extra_report_last_commit"] = v
+ merge_extra_info(h)
+ self.save
+ end
+ private :clear_extra_info_of_changesets
end