lib/learn_test/git/wip/branch.rb in learn-test-3.3.0.pre.3 vs lib/learn_test/git/wip/branch.rb in learn-test-3.3.0.pre.4

- old
+ new

@@ -15,13 +15,13 @@ @last_revision ||= begin begin @base.revparse(@name) rescue ::Git::GitExecuteError => e if raise_no_commits - raise e.message.match(LearnTest::Git::Wip::NoCommitsError::REGEX) ? LearnTest::Git::Wip::NoCommitsError.new(@name) : e + raise e.message.match(NoCommitsError::REGEX) ? NoCommitsError.new(@name) : e end - raise unless e.message.match(LearnTest::Git::Wip::NoCommitsError::REGEX) + raise unless e.message.match(NoCommitsError::REGEX) false end end end