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