fastlane-plugin-wpmreleasetoolkit 14.11.2 → 14.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07aea16b1fb8656819d8dd16269523c9ba32a6fdd6fa6c60caa2765119d80c02
|
|
4
|
+
data.tar.gz: 1058fad8effd34bf07937e702748a934d2420cf0f171ef8a21dc1de5fe03447e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e121905842c5f0226f8a7c2d35ac4a3dc5386d93650d96347a8862cd31964807f58fb1cdc62225c365e59ab7071b96ccdbb4199e96433ba4955d1054aa5227a1
|
|
7
|
+
data.tar.gz: 709be6a17688a4cd77e63d9822671b8edabe163091024e40c44ef12ac4e194294f93226eee812bee27e19eb1c3fea714e194afdb73221513351fbb994262fcc0
|
|
@@ -267,13 +267,13 @@ module Fastlane
|
|
|
267
267
|
#
|
|
268
268
|
# @param [String] branch_name The name of the remote branch to delete.
|
|
269
269
|
# @param [String] remote_name The name of the remote to delete the branch from. Defaults to 'origin'
|
|
270
|
-
# @return [Boolean] true if the branch was deleted, false if
|
|
270
|
+
# @return [Boolean] true if the branch was deleted, false if it did not exist on the remote
|
|
271
271
|
#
|
|
272
272
|
def self.delete_remote_branch_if_exists!(branch_name, remote_name: 'origin')
|
|
273
|
-
|
|
274
|
-
return false unless git_repo.branches.any? { |b| b.remote&.name == remote_name && b.name == branch_name }
|
|
273
|
+
return false unless branch_exists_on_remote?(branch_name: branch_name, remote_name: remote_name)
|
|
275
274
|
|
|
276
|
-
|
|
275
|
+
Git.open(Dir.pwd).push(remote_name, branch_name, delete: true)
|
|
276
|
+
true
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
# Checks whether a given path is ignored by Git, relying on Git's `check-ignore` under the hood.
|