Skip to content

Commit 5d03c41

Browse files
Fixes #299
Does not override GIT_SSH_COMMAND when not needed.
1 parent f9b50dd commit 5d03c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎get_git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ func setupGitEnv(cmd *exec.Cmd, sshKeyFile string) {
266266
sshKeyFile = strings.Replace(sshKeyFile, `\`, `/`, -1)
267267
}
268268
sshCmd = append(sshCmd, "-i", sshKeyFile)
269+
env = append(env, strings.Join(sshCmd, " "))
269270
}
270271

271-
env = append(env, strings.Join(sshCmd, " "))
272272
cmd.Env = env
273273
}
274274

0 commit comments

Comments
 (0)