Skip to content

Commit aec64ea

Browse files
committed
Update to fetch base ref to ensure it's available locally
1 parent 5dcecde commit aec64ea

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
@@ -308,6 +308,9 @@
308308
# Check tags
309309
UI.user_error!("Version '#{new_version}' already exists on the remote! Abort!") if git_tag_exists(tag: new_version, remote: true)
310310

311+
# Fetch the base ref to ensure it's available locally
312+
sh('git', 'fetch', 'origin', base_ref_for_hotfix)
313+
311314
# Create the hotfix branch
312315
UI.message("Creating hotfix branch from '#{base_ref_for_hotfix}'...")
313316
Fastlane::Helper::GitHelper.create_branch(compute_release_branch_name(options: options, version: new_version), from: base_ref_for_hotfix)

0 commit comments

Comments
 (0)