Skip to content

Commit 2f33f92

Browse files
authored
fix(CLI): segfault on pull with branch argument (#955)
1 parent 2e3434b commit 2f33f92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clients/cli/cmd/internal/pull.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ func (cmd *PullCommand) Run(config *phrase.Config) error {
6565

6666
for _, target := range targets {
6767
if cmd.Branch != "" {
68+
if target.Params == nil {
69+
target.Params = &PullParams{}
70+
}
6871
target.Params.Branch = optional.NewString(cmd.Branch)
6972
}
7073

0 commit comments

Comments
 (0)