selective-ruby-core 0.1.7-aarch64-linux → 0.1.8-aarch64-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: 8581fdba462a963722f885b5719b841df3cac11b035ec74466e14bd326af4f25
|
4
|
+
data.tar.gz: 40cd5c0d8d328261ba710752c17462759beea5b860b43a4befbea661b6a3fa59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b06ceb59f9e54bd9acd4b78f8899f7865ac11b02203afd6c7c8fdb60c728725069bdcd08c3d9b8d818f40466d5f0dedeaed00b3ea0a32db335797ee13ab7b620
|
7
|
+
data.tar.gz: 99f44f9cbc612233a6c04c6587ad3d5a4ca64e5c133ec4d33dd55494ae02847af99a3cd025ba083da92ababe654a44fb20493f5c6fe31fa1f6387653d7d9fef9
|
@@ -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
|