git: Quote paths

This commit is contained in:
Hylke Bons 2016-03-27 22:08:36 +01:00
parent b10c432641
commit e9aa3240e7

View file

@ -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);