Skip to content

Commit

Permalink
Default to no default for a parent branch in branch switch (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
iheanyi authored Aug 10, 2023
1 parent 1ab396c commit b32c878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/branch/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func SwitchCmd(ch *cmdutil.Helper) *cobra.Command {
ch.Config.Database, ch.Config.Organization)
}

end := ch.Printer.PrintProgress(fmt.Sprintf("Branch does not exist, creating %s branch from %s...", printer.BoldBlue(branch), printer.BoldBlue(parentBranch)))
end := ch.Printer.PrintProgress(fmt.Sprintf("Branch does not exist, creating %s branch...", printer.BoldBlue(branch)))
defer end()

createReq := &ps.CreateDatabaseBranchRequest{
Expand Down Expand Up @@ -105,7 +105,7 @@ func SwitchCmd(ch *cmdutil.Helper) *cobra.Command {
"The organization for the current user")
cmd.PersistentFlags().StringVar(&ch.Config.Database, "database", ch.Config.Database,
"The database this project is using")
cmd.Flags().StringVar(&parentBranch, "parent-branch", "main",
cmd.Flags().StringVar(&parentBranch, "parent-branch", "",
"parent branch to inherit from if a new branch is being created")
cmd.Flags().BoolVar(&autoCreate, "create", false,
"if enabled, will automatically create the branch if it does not exist")
Expand Down

0 comments on commit b32c878

Please sign in to comment.