Skip to content

Commit

Permalink
chore: drop explict_auto_detect_version_properties check
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Sep 14, 2023
1 parent bcce5a8 commit 36ce219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pact_broker/client/cli/pact_commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def branch
def consumer_app_version
require 'pact_broker/client/git'
if options.consumer_app_version.blank? && options.auto_detect_version_properties
PactBroker::Client::Git.commit(raise_error: explict_auto_detect_version_properties)
PactBroker::Client::Git.commit(raise_error: true)
else
options.consumer_app_version
end
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/pact_broker/client/cli/broker_publish_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ module PactBroker::Client::CLI
invoke_broker
end
it 'determines the git commit sha' do
expect(PactBroker::Client::Git).to receive(:commit).with(raise_error: false)
expect(PactBroker::Client::Git).to receive(:commit).with(raise_error: true)
invoke_broker
end

Expand Down

0 comments on commit 36ce219

Please sign in to comment.