Skip to content

Commit

Permalink
fix index error
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Feb 20, 2025
1 parent 66be42c commit 5d7df97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func NewCmdUp() *cobra.Command {
func(next ssh.Handler) ssh.Handler {
return func(sess ssh.Session) {
args := sess.Command()
if args[0] != "git-receive-pack" && args[0] != "git-upload-pack" {
if len(args) == 0 || args[0] != "git-receive-pack" && args[0] != "git-upload-pack" {
next(sess)
return
}
Expand Down

0 comments on commit 5d7df97

Please sign in to comment.