selective-ruby-core 0.1.7-x86_64-darwin → 0.1.8-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/selective/ruby/core/controller.rb +3 -3
- data/lib/selective/ruby/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 164b76eb2ba7ea0f2288f2e04caf54856493f60941a135dd5a482b044b8a34b2
|
4
|
+
data.tar.gz: c0c7ed6a8abf72672db0e24a89027a2b6a4aaf1ed01e3e41d84f81eb2be91179
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c316b0ba6f024fda6ead228365204679b26f107889982266f4829ed5293831b9630686e547777840864ef1f74bad58192317537c766e9f69e3e9efbda998f53e
|
7
|
+
data.tar.gz: bb52780b100195417d93a2020ea459b695200517d35830790f22516c719255c09cd26cc3cae73fbb913cbaf919d16fe1e7ffd6fa5dac8aba41089eab8a373fbb
|
@@ -291,12 +291,12 @@ module Selective
|
|
291
291
|
|
292
292
|
def get_diff(num_commits)
|
293
293
|
target_branch = build_env["target_branch"]
|
294
|
-
return
|
294
|
+
return if target_branch.nil? || target_branch.empty?
|
295
295
|
|
296
296
|
Open3.capture2e("git fetch origin #{target_branch} --depth=#{num_commits}").then do |output, status|
|
297
297
|
unless status.success?
|
298
298
|
print_warning "Selective was unable to fetch the target branch. This may result in a sub-optimal test order. If the issue persists, please contact support. The output was:\n\n#{output}"
|
299
|
-
return
|
299
|
+
return
|
300
300
|
end
|
301
301
|
end
|
302
302
|
|
@@ -305,7 +305,7 @@ module Selective
|
|
305
305
|
output.split("\n")
|
306
306
|
else
|
307
307
|
print_warning "Selective was unable to diff with the target branch. This may result in a sub-optimal test order. If the issue persists, please contact support. The output was:\n\n#{output}"
|
308
|
-
|
308
|
+
nil
|
309
309
|
end
|
310
310
|
end
|
311
311
|
end
|