diff --git a/pkg/ssh/cmd/git.go b/pkg/ssh/cmd/git.go index f6aea60a..d8584e45 100644 --- a/pkg/ssh/cmd/git.go +++ b/pkg/ssh/cmd/git.go @@ -202,9 +202,6 @@ func gitRunE(cmd *cobra.Command, args []string) error { ) } - // Add ssh session & config environ - s := sshutils.SessionFromContext(ctx) - envs = append(envs, s.Environ()...) envs = append(envs, cfg.Environ()...) repoPath := filepath.Join(reposDir, repoDir)