fastlane-plugin-git_switch_branch 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: ea5aec0ff828c586bf86fd64d6b5614deaff54cc
4
- data.tar.gz: fd5f453a1cd1e20006ab3cb91b1a140623077566
3
+ metadata.gz: 71a2825ba67b12596640615db055cc36d07223b8
4
+ data.tar.gz: 1a2429d8aad63a9dd654ce83b3426020b1cae25d
5
5
  SHA512:
6
- metadata.gz: 3876f44663897c5589e0037efc6f14049f9b5f7718a39612d17987e5db1ebd2aee88077bad914c370a40f626f2494ceb414a786909df4890ebb9665255834943
7
- data.tar.gz: 697d458663fcb530418694b6081e0d8bb3d34b7c9869482e0c6bd813193ac0445b1411e2bf76617eb4897d4196ee8f5390e2cdd6b6bb782e366a573445b17ab9
6
+ metadata.gz: 09daa23f7eb751e05f7be55570821f36e999c9e1b107b33f420ebf9699ddd889ee490e75c952294ad86958b631d367bce57e47326b0b1ef18355098b521abe50
7
+ data.tar.gz: ef2b76a78ca1052bd203f3c3a5316951614be01533219447fea8b3df08d1c874b07b757e76228922a8532417f72ed75b92ff54cff30464a56c85dc42d29268fa
@@ -9,10 +9,10 @@ module Fastlane
9
9
  else
10
10
  Actions.sh('git checkout .')
11
11
  result = Actions.sh("git checkout #{branch}")
12
- if result.nil?
13
- UI.success("Git branch match `#{branch}`, all good! 💪")
12
+ if result =~ /error:(.)/
13
+ UI.error("Git is not on a branch matching `#{branch}`. Current branch is `#{now_branch}`! Reasoin: #{result}.")
14
14
  else
15
- UI.error("Git is not on a branch matching `#{branch}`. Current branch is `#{Actions.git_branch}`! can not checkout `#{branch}` reasoin: #{result}。please ensure the repo is checked out to the correct branch.")
15
+ UI.success("Git branch match `#{branch}`, all good! 💪")
16
16
  end
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GitSwitchBranch
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-git_switch_branch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhangqi