Skip to content

Commit 7994f40

Browse files
committed
fix: skip update check for checkout cmd
1 parent 067660c commit 7994f40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cli/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ var rootCmd = &cobra.Command{
1717
SilenceUsage: true,
1818
SilenceErrors: true,
1919
PersistentPreRun: func(cmd *cobra.Command, args []string) {
20-
// Skip update check for the update and version commands
21-
if cmd.Name() == "update" || cmd.Name() == "version" {
20+
// Skip update check
21+
if cmd.Name() == "update" || cmd.Name() == "checkout" {
2222
return
2323
}
2424

0 commit comments

Comments
 (0)