Skip to content

Commit 9000233

Browse files
default selection to main branch
1 parent cd1ce23 commit 9000233

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/commands/init/init.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ class ReactNativeInit extends Command {
1818
Future<void> run() async {
1919
ArgsProcessor argsProcessor = ArgsProcessor(args);
2020

21-
// Skip the selection of "init type" and directly set it to "standard"
22-
int idx = 0; // Standard initialization type by default
21+
String branch = 'main';
2322

24-
// Skip the selection of architecture branches and default to 'main' branch
25-
String branch = 'main'; // Set default to main branch
26-
27-
// Start the process of fetching the branches (but default to 'main' without user input)
2823
List<String>? branches = await GitService.getGitLabBranches(
2924
ReactNativeConfig.i.archManagerProjectID,
3025
TokenService().accessToken!,

0 commit comments

Comments
 (0)