We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dc7980 commit 423f492Copy full SHA for 423f492
1 file changed
cmd/utils.go
@@ -44,6 +44,10 @@ func resolveStack(sf *stack.StackFile, branch string, cfg *config.Config) (*stac
44
45
s := stacks[selected]
46
47
+ if len(s.Branches) == 0 {
48
+ return nil, fmt.Errorf("selected stack %q has no branches", s.DisplayName())
49
+ }
50
+
51
// Switch to the top branch of the selected stack so future commands
52
// resolve unambiguously.
53
topBranch := s.Branches[len(s.Branches)-1].Branch
0 commit comments