Skip to content

Commit c1e8ee9

Browse files
committed
Update to fetch base ref to ensure it's available locally
1 parent 49c2fcd commit c1e8ee9

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
@@ -442,6 +442,9 @@ platform :ios do
442442
# Check tags
443443
UI.user_error!("Version '#{version}' already exists on the remote! Abort!") if git_tag_exists(tag: version, remote: true)
444444

445+
# Fetch the base ref to ensure it's available locally
446+
sh('git', 'fetch', 'origin', base_ref_for_hotfix)
447+
445448
# Create the hotfix branch
446449
UI.message("Creating hotfix branch from '#{base_ref_for_hotfix}'...")
447450
Fastlane::Helper::GitHelper.create_branch("release/#{version}", from: base_ref_for_hotfix)

0 commit comments

Comments
 (0)