Skip to content

Commit

Permalink
Fixes #299
Browse files Browse the repository at this point in the history
Does not override GIT_SSH_COMMAND when not needed.
  • Loading branch information
nl-brett-stime committed Jan 6, 2021
1 parent f9b50dd commit 5d03c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ func setupGitEnv(cmd *exec.Cmd, sshKeyFile string) {
sshKeyFile = strings.Replace(sshKeyFile, `\`, `/`, -1)
}
sshCmd = append(sshCmd, "-i", sshKeyFile)
env = append(env, strings.Join(sshCmd, " "))
}

env = append(env, strings.Join(sshCmd, " "))
cmd.Env = env
}

Expand Down

0 comments on commit 5d03c41

Please sign in to comment.