selective-ruby-core 0.1.7-arm64-darwin → 0.1.8-arm64-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: e952eb63c5251c16e0923e82ad0650e0a983afb0b4c01e100567778a4df9ccbc
|
4
|
+
data.tar.gz: bc3d75e86bfe37bc21722bbc7afbf6429e5ee27f149b77bf9fa22f34734b36ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bab488e14df432f6947e7b0583fb591fe9e1333c2882cfba5df80fd3ac401bea6f00c069e5b2cc31ada65a8a091fe73443490a342d642ae844f1934c98b9a89d
|
7
|
+
data.tar.gz: e0e37bc55905a66786991988bd14694071c1ae114d4913151db2f4831184ed8cb5f7b5f71942cb8eb516cc1965d0a6e8d78dc4c5c0601628b05c5c89ad06d173
|
@@ -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
|