From e4d8e88deb2a5c17370a0c9c70a0fc4671cb2d6f Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 22 Oct 2012 21:41:00 +0100 Subject: [PATCH] repo git: cleanups --- SparkleLib/Git/SparkleRepoGit.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index 7058ee01..75e9a6ed 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -196,9 +196,7 @@ namespace SparkleLib.Git { // TODO: Progress } - git = new SparkleGit (LocalPath, - "push --progress " + // Redirects progress stats to standarderror - "\"" + RemoteUrl + "\" master"); + git = new SparkleGit (LocalPath, "push --progress \"" + RemoteUrl + "\" master"); git.StartInfo.RedirectStandardError = true; git.Start (); @@ -311,9 +309,8 @@ namespace SparkleLib.Git { if (line.Contains ("|")) { speed = line.Substring (line.IndexOf ("|") + 1).Trim (); speed = speed.Replace (", done.", "").Trim (); - speed = speed.Replace ("i", ""); - speed = speed.Replace ("KB/s", "ᴋʙ/s"); - speed = speed.Replace ("MB/s", "ᴍʙ/s"); + speed = speed.Replace ("KiB/s", "ᴋʙ/s"); + speed = speed.Replace ("MiB/s", "ᴍʙ/s"); } }