fastlane-plugin-semantic_release 1.9.0 → 1.9.1

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: d31080ed0e60026d8e691194ddb620b276fa4138a2347af0da76c6da03660985
4
- data.tar.gz: 3114545c304b7636d58ac3b16ddc315de4ae283980039b76eeb9342dd6dab799
3
+ metadata.gz: c66674917e33a9f80d08bb6d3bcb7c6b4f58fc8f9b9af1dd82fa0ac5716e21ee
4
+ data.tar.gz: 7e17e04c3a1800bc732134ef251ffd6a9e2eb19cc3a711b7f5d1388a02e54491
5
5
  SHA512:
6
- metadata.gz: eb2c1ce206ff206e108f31d19490bc7855991bb69ed514209750bb5d664b9784f86123e9309a690608f35d5b2a215e651b767782a4887e2ba541acbf31a792d1
7
- data.tar.gz: c11abd5f99fd43483c149eb594fa76ca6bab6970510396e17fa0af08a698c7f5577a1d82893c201c7d4679278cb6ccde74d8685bd63f0327d19c67ef578d7cfb
6
+ metadata.gz: f10d6840ad2cca40d61a21d7e0841b0afa569f4870922de04556828eb4b6e8ea34c1424cdd31c3bfdff9d282b56691f5124d425978da61c56fcf2b2ecd145111
7
+ data.tar.gz: 6b4ad63ff160110badea192be055ea48f7e2103076de6562b8a6ef7ab13cf138a2e35eea2ff545eade48e1670a34c5a8df4658bf522beb619cfab0c86f753dda
@@ -143,13 +143,22 @@ module Fastlane
143
143
  end
144
144
 
145
145
  def self.is_codepush_friendly(params)
146
+ git_command = 'git rev-list --max-parents=0 HEAD'
146
147
  # Begining of the branch is taken for codepush analysis
147
- hash = Actions.sh('git rev-list --max-parents=0 HEAD', log: params[:debug]).chomp
148
+ hash_lines = Actions.sh("#{git_command} | wc -l", log: params[:debug]).chomp
149
+ hash = Actions.sh(git_command, log: params[:debug]).chomp
148
150
  next_major = 0
149
151
  next_minor = 0
150
152
  next_patch = 0
151
153
  last_incompatible_codepush_version = '0.0.0'
152
154
 
155
+ if hash_lines.to_i > 1
156
+ UI.error("#{git_command} resulted to more than 1 hash")
157
+ UI.error('This usualy happens when you pull only part of a git history. Check out how you pull the repo! "git fetch" should be enough.')
158
+ Actions.sh(git_command, log: true).chomp
159
+ return false
160
+ end
161
+
153
162
  # Get commits log between last version and head
154
163
  splitted = get_commits_from_hash(
155
164
  hash: hash,
@@ -1 +1 @@
1
- module Fastlane module SemanticRelease VERSION = "1.9.0" end end
1
+ module Fastlane module SemanticRelease VERSION = "1.9.1" end end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-semantic_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Otáhal