Skip to content

Commit e3b2f10

Browse files
committed
Update to fetch base ref to ensure it's available locally
1 parent 33b9303 commit e3b2f10

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
@@ -113,6 +113,9 @@ platform :android do
113113

114114
UI.user_error!("Terminating as requested. Don't forget to run the remainder of this automation manually.") unless skip_confirm || UI.confirm('Do you want to continue?')
115115

116+
# Fetch the base ref to ensure it's available locally
117+
sh('git', 'fetch', 'origin', base_ref_for_hotfix)
118+
116119
UI.message("Creating hotfix branch from '#{base_ref_for_hotfix}'...")
117120
Fastlane::Helper::GitHelper.create_branch(release_branch_name(release_version: new_version), from: base_ref_for_hotfix)
118121
UI.success("Done! New hotfix branch is: '#{git_branch}'")

0 commit comments

Comments
 (0)