Skip to content

Commit ce6afd0

Browse files
authored
fix: unset git branch when name is provided (#3603)
1 parent c603179 commit ce6afd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/branches/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ func Run(ctx context.Context, body api.CreateBranchBody, fsys afero.Fs) error {
2222
return errors.New(context.Canceled)
2323
}
2424
body.BranchName = gitBranch
25+
body.GitBranch = &gitBranch
2526
}
26-
body.GitBranch = &gitBranch
2727

2828
resp, err := utils.GetSupabase().V1CreateABranchWithResponse(ctx, flags.ProjectRef, body)
2929
if err != nil {

0 commit comments

Comments
 (0)