sec: do not append session envs to git run (#544)

Carlos Alexandro Becker created

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Change summary

pkg/ssh/cmd/git.go | 3 ---
1 file changed, 3 deletions(-)

Detailed changes

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)