fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
39.72k stars 5.72k forks source link

[import_from_git] Fix crash on first execution with version and cache_path options #26525

Open revolter opened 1 month ago

revolter commented 1 month ago

Checklist

Motivation and Context

Resolves #21079.

Introduced via #20895 in https://github.com/fastlane/fastlane/releases/tag/2.212.0.

Description

I first decouple import_from_git tests from each other, so I can easier test the fix.

Then, since the initial clone is executed without a checkout, I added a new check to ensure that a checkout gets executed at least once before trying to import the Fastfile.

Testing Steps