Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modus new set default branch name to 'main' #613

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Change Log

## Unreleased
## 2024-11-25 - CLI 0.13.10

- fix: modus new rename branch to main if not [#613](https://github.com/hypermodeinc/modus/pull/613)
- fix: use git commit with double quotes for Windows [#612](https://github.com/hypermodeinc/modus/pull/612)

## 2024-11-23 - Runtime 0.14.0
Expand Down
2 changes: 1 addition & 1 deletion cli/src/commands/new/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export default class NewCommand extends BaseCommand {
}

if (createGitRepo) {
await execFile("git", ["init"], execOpts);
await execFile("git", ["init", "-b", "main"], execOpts);
await execFile("git", ["add", "."], execOpts);
await execFile("git", ["commit", "-m", `"Initial Commit"`], execOpts);
}
Expand Down