Skip to content

Commit

Permalink
set initial branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
ptgoetz committed Sep 14, 2024
1 parent 97e531e commit 9813be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func HasPendingChanges(dirPath string) (bool, error) {

// InitializeGitRepo initializes a new Git repository in the specified directory path.
func InitializeGitRepo(dirPath string) error {
_, _, err := runGitCommand(dirPath, "init")
_, _, err := runGitCommand(dirPath, "init", "--initial-branch=main")
if err != nil {
return fmt.Errorf("failed to initialize git repository: %w", err)
}
Expand Down

0 comments on commit 9813be3

Please sign in to comment.