Skip to content

Conversation

@jcouball
Copy link
Member

Allow the user to specify the initial branch in the newly created repository.

This also includes a refactoring to move option validation methods (like validate_boolean_option) to the RubyGit::OptionValidators module. This module is designed to be included and/or extended into classes needed to validate options.

@jcouball jcouball requested a review from a team as a code owner March 31, 2025 20:50
@jcouball jcouball force-pushed the init_initial_branch branch 6 times, most recently from e3aaaf1 to 0a8215b Compare April 8, 2025 15:44
@jcouball jcouball force-pushed the init_initial_branch branch from 0a8215b to 2148b4f Compare April 15, 2025 20:32
Different Ruby engines / platforms (MRI, MRI on Windows, JRuby, TruffleRuby might
raise different errors for a similar reasons due to differences in how they implement
Process.spawn. This change raises a consistent error when Process.spawn raises an
error.

Process.spawn does this when it can't even run the given command. If there is a
problem once the command is running (uncaught signal, timeout, non-zero
exitstatus), the the returned result will contain that information.
@jcouball jcouball force-pushed the init_initial_branch branch from 2148b4f to 1b3c348 Compare April 17, 2025 16:51
@jcouball jcouball merged commit 1ed4444 into main Apr 17, 2025
3 checks passed
@jcouball jcouball deleted the init_initial_branch branch April 17, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants