inch_ci-worker 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 696aabfb7dc55b4b42c20339dec7e2b132e3c6d5
4
- data.tar.gz: f790ff29b678ceaa5bd83e4153f99075970ef2b5
3
+ metadata.gz: 9072f4ffcc028666e7f301a24b48384e2f96c7db
4
+ data.tar.gz: 18d8f88625cc25753074b22491ab32f7f40e3fa6
5
5
  SHA512:
6
- metadata.gz: b0e0e887916ef8afc22cd68fa2a23618c58f7e302d5c512af6dabb6dd269901deb2f638d2fb332d480f74e2030a2c100925ff1a5793fa4a80cc96af143692beb
7
- data.tar.gz: d888b433ea538e9b0728db53e523469fd8550b684185246dff1cd74dac4cc0b0919d7c9f3939cfd20e4f082c1ec2f65974181f402788a8aca628645af4d4e218
6
+ metadata.gz: 70d5bc8ad0364f95f7a6373432ca32cb31b7d814c560036f86e8ce9c1a8aacc9d8ffa0526beddd93dc9dfb4d7853a3278fbd97086826f6d72fe00dae7dd52ed3
7
+ data.tar.gz: 1386a3c4a204cf47427e8a1356820d8d5498a7be11df5b49393fe8f46b2ee68f792fc943761f4da03a116f0a22822f435ca8cb483b213e632b9baf168c6221ce
@@ -36,7 +36,8 @@ module InchCI
36
36
  def build(url, branch_name, revision, latest_revision, language)
37
37
  @url = url
38
38
  if retrieve_repo
39
- if repo.change_branch(branch_name, true)
39
+ checkout_cmd = branch_name == "master" ? "master" : "--track origin/#{branch_name}"
40
+ if repo.change_branch(checkout_cmd, true)
40
41
  if repo.checkout_revision(revision)
41
42
  if @codebase = parse_codebase(language, repo.path)
42
43
  result = ResultSuccess.new(repo, branch_name, latest_revision, @codebase.objects)
@@ -1,5 +1,5 @@
1
1
  module InchCI
2
2
  module Worker
3
- VERSION = "0.3.8"
3
+ VERSION = "0.3.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inch_ci-worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-16 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.4.3
153
+ rubygems_version: 2.4.7
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Worker for the Inch CI project