]> source.dussan.org Git - redmine.git/commitdiff
Merged r6246 from trunk.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Jul 2011 02:08:23 +0000 (02:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Jul 2011 02:08:23 +0000 (02:08 +0000)
scm: mercurial: do nothing in fetching if info is nil.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6254 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/mercurial.rb

index 4c6fae23d7c1f58e77c7bbd3aa72f0f8001db1f5..71fea0bc4be43addc6fef82457d2981e07b3a324 100644 (file)
@@ -123,6 +123,7 @@ class Repository::Mercurial < Repository
   private :latest_changesets_cond
 
   def fetch_changesets
+    return if scm.info.nil?
     scm_rev = scm.info.lastrev.revision.to_i
     db_rev = latest_changeset ? latest_changeset.revision.to_i : -1
     return unless db_rev < scm_rev  # already up-to-date