Skip to content

Commit 0d304a3

Browse files
committed
Update to fetch base ref to ensure it's available locally
1 parent b493b3c commit 0d304a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fastlane/Fastfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,9 @@ platform :ios do
447447
# Check tags
448448
UI.user_error!("Version '#{version}' already exists on the remote! Abort!") if git_tag_exists(tag: version, remote: true)
449449

450+
# Fetch the base ref to ensure it's available locally
451+
sh('git', 'fetch', 'origin', base_ref_for_hotfix)
452+
450453
# Create the hotfix branch
451454
UI.message("Creating hotfix branch from '#{base_ref_for_hotfix}'...")
452455
Fastlane::Helper::GitHelper.create_branch("release/#{version}", from: base_ref_for_hotfix)

0 commit comments

Comments
 (0)