Skip to content

Commit 4daebdd

Browse files
authored
sec: do not append session envs to git run (#544)
Signed-off-by: Carlos Alexandro Becker <[email protected]>
1 parent b5f5721 commit 4daebdd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/ssh/cmd/git.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,6 @@ func gitRunE(cmd *cobra.Command, args []string) error {
202202
)
203203
}
204204

205-
// Add ssh session & config environ
206-
s := sshutils.SessionFromContext(ctx)
207-
envs = append(envs, s.Environ()...)
208205
envs = append(envs, cfg.Environ()...)
209206

210207
repoPath := filepath.Join(reposDir, repoDir)

0 commit comments

Comments
 (0)