From 2dd3591b0fe2b8c016b2531426e333f310b01d15 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Mon, 20 Jan 2020 18:54:21 +1100 Subject: [PATCH] feat: use `lib/pact/provider_verifier/git.rb` to get git sha --- lib/pact/provider_verifier/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact/provider_verifier/git.rb b/lib/pact/provider_verifier/git.rb index a9bf46b..5aeca78 100644 --- a/lib/pact/provider_verifier/git.rb +++ b/lib/pact/provider_verifier/git.rb @@ -5,7 +5,7 @@ module Pact module ProviderVerifier module Git - COMMAND = 'git name-rev --name-only HEAD'.freeze + COMMAND = 'git rev-parse --abbrev-ref HEAD'.freeze BRANCH_ENV_VAR_NAMES = %w{BUILDKITE_BRANCH CIRCLE_BRANCH TRAVIS_BRANCH GIT_BRANCH GIT_LOCAL_BRANCH APPVEYOR_REPO_BRANCH CI_COMMIT_REF_NAME}.freeze def self.branch