pact_broker-client 1.22.2 → 1.22.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -5
- data/lib/pact_broker/client/git.rb +1 -1
- data/lib/pact_broker/client/version.rb +1 -1
- data/spec/lib/pact_broker/client/git_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f11962b86d8bb10ac4cba0dd5dee6c7054dfbb7b
|
4
|
+
data.tar.gz: 145fbe4eea4cdaa5a52e53ff39390e3dc56f5012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d4a0987ef3f98dac660ef283f451358410cd647135965974d33b87a828c04df659a975e2964fe7394cad1075d2064a22d8055f449ce0f43b3c7bdbb4c0df01f
|
7
|
+
data.tar.gz: 13355657783a999487465fcf326a4ec9ef271b6ec7dd04cb97c94cab744a34b89236c36a8b9c9adba132d23229fc0f7a7eb25d16751b4b1630a64a84dae627a4
|
data/.travis.yml
CHANGED
@@ -5,8 +5,8 @@ rvm:
|
|
5
5
|
- 2.4.1
|
6
6
|
|
7
7
|
before_install:
|
8
|
-
- git show-ref | grep $(git log --pretty=%h -1) | sed 's|.*/\(.*\)|\1|' | sort -u | grep -v HEAD
|
9
|
-
- git show -s --pretty=%d HEAD
|
10
|
-
- git for-each-ref --format='%(objectname) %(refname:short)' refs/heads | awk "/^$(git rev-parse HEAD)/ {print \$2}"
|
11
|
-
- git show -s --pretty=%D HEAD | tr -s ', ' '\n' | grep -v HEAD | head -n1
|
12
|
-
- git name-rev --name-only HEAD
|
8
|
+
- (git show-ref | grep $(git log --pretty=%h -1) | sed 's|.*/\(.*\)|\1|' | sort -u | grep -v HEAD) || true
|
9
|
+
- (git show -s --pretty=%d HEAD) || true
|
10
|
+
- (git for-each-ref --format='%(objectname) %(refname:short)' refs/heads | awk "/^$(git rev-parse HEAD)/ {print \$2}") || true
|
11
|
+
- (git show -s --pretty=%D HEAD | tr -s ', ' '\n' | grep -v HEAD | head -n1) || true
|
12
|
+
- (git name-rev --name-only HEAD) || true
|
@@ -18,7 +18,7 @@ bamboo.repository.git.branch https://confluence.atlassian.com/bamboo/bamboo-vari
|
|
18
18
|
module PactBroker
|
19
19
|
module Client
|
20
20
|
module Git
|
21
|
-
COMMAND = 'git
|
21
|
+
COMMAND = 'git name-rev --name-only HEAD'.freeze
|
22
22
|
BRANCH_ENV_VAR_NAMES = %w{BUILDKITE_BRANCH CIRCLE_BRANCH TRAVIS_BRANCH GIT_BRANCH GIT_LOCAL_BRANCH APPVEYOR_REPO_BRANCH CI_COMMIT_REF_NAME}.freeze
|
23
23
|
|
24
24
|
def self.branch
|
@@ -26,7 +26,7 @@ module PactBroker
|
|
26
26
|
|
27
27
|
context "when there is no known environment variable for the branch", skip_ci: true do
|
28
28
|
it "attempts to execute a git command to determine the value" do
|
29
|
-
expect
|
29
|
+
expect(subject).to_not be_empty
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|