Sha256: 13c351760215861f15f2e8c349428613ace34162be1032a305a41c903e0b8677

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

module LearnTest
  module Git
    module Wip
      module Errors
        class NoCommitsError < BaseError
          REGEX = /unknown revision or path not in the working tree/i.freeze

          def initialize(branch)
            super "Branch `#{branch}` doesn't have any commits. Please commit and try again."
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
learn-test-3.3.1 lib/learn_test/git/wip/errors/no_commits_error.rb
learn-test-3.3.0 lib/learn_test/git/wip/errors/no_commits_error.rb
learn-test-3.3.0.pre.6 lib/learn_test/git/wip/errors/no_commits_error.rb