repo git: add private key info when using git-bin
This commit is contained in:
parent
a211521e79
commit
c6a952233e
|
@ -81,10 +81,15 @@ namespace SparkleLib.Git {
|
|||
|
||||
this.use_git_bin = (git.ExitCode == 0);
|
||||
|
||||
git = new SparkleGit (LocalPath, "config remote.origin.url \"" + RemoteUrl + "\"");
|
||||
git.StartAndWaitForExit ();
|
||||
if (this.use_git_bin) {
|
||||
git = new SparkleGit (LocalPath, "config git-bin.sshUrl \"" + RemoteUrl + "\"");
|
||||
git.StartAndWaitForExit ();
|
||||
|
||||
git = new SparkleGit (LocalPath, "config git-bin.sshUrl \"" + RemoteUrl + "\"");
|
||||
git = new SparkleGit (LocalPath, "config git-bin.sshPrivateKeyFile \"" + config.User.PrivateKeyFilePath + "\"");
|
||||
git.StartAndWaitForExit ();
|
||||
}
|
||||
|
||||
git = new SparkleGit (LocalPath, "config remote.origin.url \"" + RemoteUrl + "\"");
|
||||
git.StartAndWaitForExit ();
|
||||
|
||||
string password_file_path = Path.Combine (LocalPath, ".git", "password");
|
||||
|
|
Loading…
Reference in a new issue