mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
optimize<Command>: each process has its own envs
This commit is contained in:
parent
75a46ceb74
commit
48020861ee
5 changed files with 11 additions and 4 deletions
|
@ -16,7 +16,7 @@ namespace SourceGit.Commands {
|
|||
|
||||
var sshKey = new Config(repo).Get($"remote.{remote}.sshkey");
|
||||
if (!string.IsNullOrEmpty(sshKey)) {
|
||||
Environment.SetEnvironmentVariable("GIT_SSH_COMMAND", $"ssh -i '{sshKey}'");
|
||||
Envs.Add("GIT_SSH_COMMAND", $"ssh -i '{sshKey}'");
|
||||
Args = "";
|
||||
} else {
|
||||
Args = "-c credential.helper=manager ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue