diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-08 11:10:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-08 11:10:46 +0000 |
commit | adb81b1ff6740cdf8c37454d2f691950306330cc (patch) | |
tree | a61af1d13652b545c7b0eb96698857f0ffac16a9 /app | |
parent | f319409abc950044d6837aead5e5ded9f99423de (diff) | |
download | redmine-adb81b1ff6740cdf8c37454d2f691950306330cc.tar.gz redmine-adb81b1ff6740cdf8c37454d2f691950306330cc.zip |
scm: git: split fetch_changesets method
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8814 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/repository/git.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 86507acbc..602dba898 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -144,6 +144,10 @@ class Repository::Git < Repository merge_extra_info(h) self.save end + save_revisions(h, scm_brs) + end + + def save_revisions(h, scm_brs) scm_brs.each do |br1| br = br1.to_s from_scmid = nil @@ -167,6 +171,7 @@ class Repository::Git < Repository end end end + private :save_revisions def save_revision(rev) changeset = Changeset.new( |