git: Quote paths
This commit is contained in:
parent
b10c432641
commit
e9aa3240e7
|
@ -36,10 +36,10 @@ namespace SparkleLib.Git {
|
||||||
SSHPath = "ssh";
|
SSHPath = "ssh";
|
||||||
|
|
||||||
string GIT_SSH_COMMAND = SSHPath + " " +
|
string GIT_SSH_COMMAND = SSHPath + " " +
|
||||||
"-o UserKnownHostsFile=" + SSHAuthenticationInfo.DefaultAuthenticationInfo.KnownHostsFilePath + " " +
|
"-i \"" + SSHAuthenticationInfo.DefaultAuthenticationInfo.PrivateKeyFilePath + "\" " +
|
||||||
|
"-o UserKnownHostsFile=\"" + SSHAuthenticationInfo.DefaultAuthenticationInfo.KnownHostsFilePath + "\" " +
|
||||||
"-o PasswordAuthentication=no " +
|
"-o PasswordAuthentication=no " +
|
||||||
"-F /dev/null " + // Ignore the environment's SSH config file
|
"-F /dev/null"; // Ignore the environment's SSH config file
|
||||||
"-i " + SSHAuthenticationInfo.DefaultAuthenticationInfo.PrivateKeyFilePath;
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty (ExecPath))
|
if (!string.IsNullOrEmpty (ExecPath))
|
||||||
SetEnvironmentVariable ("GIT_EXEC_PATH", ExecPath);
|
SetEnvironmentVariable ("GIT_EXEC_PATH", ExecPath);
|
||||||
|
|
Loading…
Reference in a new issue