lib/learn_test/git/wip/branch.rb in learn-test-3.3.0.pre.1 vs lib/learn_test/git/wip/branch.rb in learn-test-3.3.0.pre.2
- 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(NoCommitsError::REGEX) ? NoCommitsError.new(@name) : e
+ raise e.message.match(LearnTest::Git::Wip::NoCommitsError::REGEX) ? LearnTest::Git::Wip::NoCommitsError.new(@name) : e
end
- raise unless e.message.match(NoCommitsError::REGEX)
+ raise unless e.message.match(LearnTest::Git::Wip::NoCommitsError::REGEX)
false
end
end
end