fix: don't check version on gitssh cmds (#2757)

This commit is contained in:
Jon Ayers
2022-06-30 12:03:41 -05:00
committed by GitHub
parent 64997705ab
commit 6ad0f31687

View File

@ -78,7 +78,7 @@ func Root() *cobra.Command {
// Login handles checking the versions itself since it
// has a handle to an unauthenticated client.
// Server is skipped for obvious reasons.
if cmd.Name() == "login" || cmd.Name() == "server" {
if cmd.Name() == "login" || cmd.Name() == "server" || cmd.Name() == "gitssh" {
return nil
}