From 3d519e37ee38637677810fde9e3b3bb17c7a315c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 25 May 2011 08:51:38 +0000 Subject: [PATCH] scm: bazaar: check not nil in adapter append_revisions_only() (#2799, #4741, #8030). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5895 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/bazaar_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index 5f5d89792..ca980052c 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -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 -- 2.39.5