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