git: adjust git-bin configuration to use sftp

This commit is contained in:
Hylke Bons 2012-12-20 18:40:55 +01:00
parent 8f4ee1ec91
commit c7089c884e
2 changed files with 4 additions and 11 deletions

View file

@ -332,11 +332,7 @@ namespace SparkleLib.Git {
string [] settings = new string [] {
"core.bigFileThreshold 1024g",
"filter.bin.clean \"git bin clean %f\"",
"filter.bin.smudge \"git bin smudge\"",
"git-bin.chunkSize 1m",
"git-bin.s3bucket \"your bucket name\"",
"git-bin.s3key \"your key\"",
"git-bin.s3secretKey \"your secret key\""
"filter.bin.smudge \"git bin smudge\""
};
foreach (string setting in settings) {

View file

@ -102,10 +102,10 @@ namespace SparkleLib.Git {
git = new SparkleGit (LocalPath, "config filter.bin.smudge \"git bin smudge\"");
git.StartAndWaitForExit ();
git = new SparkleGit (LocalPath, "config git-bin.sshUrl \"" + RemoteUrl + "\"");
git = new SparkleGit (LocalPath, "config git-bin.sftpUrl \"" + RemoteUrl + "\"");
git.StartAndWaitForExit ();
git = new SparkleGit (LocalPath, "config git-bin.sshPrivateKeyFile \"" + base.local_config.User.PrivateKeyFilePath + "\"");
git = new SparkleGit (LocalPath, "config git-bin.sftpPrivateKeyFile \"" + base.local_config.User.PrivateKeyFilePath + "\"");
git.StartAndWaitForExit ();
}
@ -237,8 +237,6 @@ namespace SparkleLib.Git {
Commit (message);
}
SparkleGit git;
if (this.use_git_bin) {
SparkleGitBin git_bin = new SparkleGitBin (LocalPath, "push");
git_bin.StartAndWaitForExit ();
@ -246,8 +244,7 @@ namespace SparkleLib.Git {
// TODO: Progress
}
git = new SparkleGit (LocalPath, "push --progress \"" + RemoteUrl + "\" " + this.branch);
SparkleGit git = new SparkleGit (LocalPath, "push --progress \"" + RemoteUrl + "\" " + this.branch);
git.StartInfo.RedirectStandardError = true;
git.Start ();