Permalink
Browse files

Fix git.rb to not raise an exception

If Git#repos_fetched? raises an exception, the Rakefile will not load.
This is especially bad if you don't have the repos fetched .. for you
will not be able to do so. Fixes the method to just return false in this
case (specs?).
  • Loading branch information...
1 parent d7db4ec commit 6426ea1d01335fe4906a70c5e23c078a6c261392 @kschiess kschiess committed with Dec 4, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/git.rb
View
@@ -2,7 +2,7 @@ module RSpec
class Git
def repos_fetched?
repos.all? do |repo|
- File.directory?(repo[:path]) ? true : (raise "missing #{repo[:path]}")
+ File.directory?(repo[:path])
end
end

0 comments on commit 6426ea1

Please sign in to comment.