Exception: LearnTest::Git::Wip::Errors::NoCommitsError
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- LearnTest::Git::Wip::Errors::NoCommitsError
- Defined in:
- lib/learn_test/git/wip/errors/no_commits_error.rb
Constant Summary collapse
- REGEX =
/unknown revision or path not in the working tree/i.freeze
Instance Method Summary collapse
-
#initialize(branch) ⇒ NoCommitsError
constructor
A new instance of NoCommitsError.
Constructor Details
#initialize(branch) ⇒ NoCommitsError
Returns a new instance of NoCommitsError.
10 11 12 |
# File 'lib/learn_test/git/wip/errors/no_commits_error.rb', line 10 def initialize(branch) super "Branch `#{branch}` doesn't have any commits. Please commit and try again." end |