Exception: LearnTest::Git::Wip::Errors::NoCommitsError

Inherits:
BaseError
  • Object
show all
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

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