git: adjust git-bin configuration to use sftp
This commit is contained in:
parent
506f07d74a
commit
dd17c20373
|
@ -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) {
|
||||
|
|
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue