selective-ruby-core 0.1.7-x86_64-linux → 0.1.8-x86_64-linux
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: 8fc1593cbdf10f86bea4aa1bda2da083d9adbd598a5a4c18898968b214b32a6b
|
4
|
+
data.tar.gz: 1974dcafb418d40f3434a5b97c0afb50f3cadb50da7bea4d2687ea2199723657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753cf27d67588c65727223edc78821eb2e0b03921466bec6b952a4c9299c45c04e43584cd7412f9b4cc1398d481b3cac0ebdf7149f88548c05c3223386d0d734
|
7
|
+
data.tar.gz: 36940e88e60ee06fbad277099ceafcef7677ba8be9d7a82a61df1afd3dd6b09d458cb806f13de80542177a35332d6d9be440777b3039cd4702a503f2e9f8742f
|
@@ -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
|