Start processes after adding delegates to avoid duplicate pull messages.
This commit is contained in:
parent
62537e6a86
commit
11b4435a13
|
@ -440,7 +440,6 @@ namespace SparkleLib {
|
|||
process.StartInfo.UseShellExecute = false;
|
||||
process.StartInfo.WorkingDirectory = LocalPath;
|
||||
process.StartInfo.Arguments = "ls-remote origin master";
|
||||
process.Start ();
|
||||
|
||||
process.Exited += delegate {
|
||||
|
||||
|
@ -459,6 +458,8 @@ namespace SparkleLib {
|
|||
|
||||
};
|
||||
|
||||
process.Start ();
|
||||
|
||||
/* FIXME: LsRemoteCommand is not yet implemented by GitSharp
|
||||
|
||||
LsRemoteCommand ls_remote = new LsRemoteCommand () {
|
||||
|
@ -683,9 +684,6 @@ namespace SparkleLib {
|
|||
|
||||
process.StartInfo.Arguments = "fetch -v origin master";
|
||||
|
||||
process.Start ();
|
||||
process.WaitForExit ();
|
||||
|
||||
process.Exited += delegate {
|
||||
|
||||
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes fetched.");
|
||||
|
@ -718,6 +716,9 @@ namespace SparkleLib {
|
|||
|
||||
};
|
||||
|
||||
process.Start ();
|
||||
process.WaitForExit ();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -837,7 +838,6 @@ namespace SparkleLib {
|
|||
Process.StartInfo.Arguments = "push origin master";
|
||||
|
||||
Process.WaitForExit ();
|
||||
Process.Start ();
|
||||
|
||||
Process.Exited += delegate {
|
||||
|
||||
|
@ -881,6 +881,7 @@ namespace SparkleLib {
|
|||
}
|
||||
|
||||
};
|
||||
Process.Start ();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue