Skip to content

Commit b4376a1

Browse files
committed
Update to fetch base ref to ensure it's available locally
1 parent 00d4d30 commit b4376a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fastlane/lanes/release.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@
247247
# Check tags
248248
UI.user_error!("Version '#{new_version}' already exists on the remote! Abort!") if git_tag_exists(tag: new_version, remote: true)
249249

250+
# Fetch the base ref to ensure it's available locally
251+
sh('git', 'fetch', 'origin', base_ref_for_hotfix)
252+
250253
# Create the hotfix branch
251254
UI.message("Creating hotfix branch from '#{base_ref_for_hotfix}'...")
252255
Fastlane::Helper::GitHelper.create_branch("release/#{new_version}", from: base_ref_for_hotfix)

0 commit comments

Comments
 (0)