]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: check not nil in adapter append_revisions_only() (#2799, #4741, #8030).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 08:51:38 +0000 (08:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 08:51:38 +0000 (08:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5895 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/bazaar_adapter.rb

index 5f5d897925b0ba71f3b0590ed54c6a150638ec92..ca980052c00e31e35c2d3d3e7a26cc1bb4dde42c 100644 (file)
@@ -240,7 +240,7 @@ module Redmine
           return @aro if ! @aro.nil?
           @aro = false
           bcp = self.class.branch_conf_path(url)
-          if File.exist?(bcp)
+          if bcp && File.exist?(bcp)
             begin
               f = File::open(bcp, "r")
               cnt = 0