summaryrefslogtreecommitdiffstats
path: root/app/models/repository
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-11-21 08:17:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-11-21 08:17:56 +0000
commitf6367b8ba744d507b0697c9d45ae4a94e36183c8 (patch)
treec08ba05c790c82fde67c10d94eec908eb5a33572 /app/models/repository
parent5d8d38aa609bb65c0d29a9c9047b482480043508 (diff)
downloadredmine-f6367b8ba744d507b0697c9d45ae4a94e36183c8.tar.gz
redmine-f6367b8ba744d507b0697c9d45ae4a94e36183c8.zip
scm: git: fix tests fail when extra_info is nil (#12409)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10857 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r--app/models/repository/git.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb
index 037be94e5..e07e7c804 100644
--- a/app/models/repository/git.rb
+++ b/app/models/repository/git.rb
@@ -257,6 +257,7 @@ class Repository::Git < Repository
end
def clear_extra_info_of_changesets
+ return if extra_info.nil?
v = extra_info["extra_report_last_commit"]
write_attribute(:extra_info, nil)
h = {}