From 1b04fda8f7c243afe4cc85654f933d8d9f14b6ca Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 28 Jun 2012 12:18:00 +0100 Subject: [PATCH] fetcher git: don't read output on checkout and add --quiet option --- SparkleLib/Git/SparkleFetcherGit.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/SparkleLib/Git/SparkleFetcherGit.cs b/SparkleLib/Git/SparkleFetcherGit.cs index 3b732a8a..889937c8 100755 --- a/SparkleLib/Git/SparkleFetcherGit.cs +++ b/SparkleLib/Git/SparkleFetcherGit.cs @@ -288,12 +288,8 @@ namespace SparkleLib.Git { if (IsFetchedRepoEmpty) return; - SparkleGit git = new SparkleGit (TargetFolder, "checkout HEAD"); + SparkleGit git = new SparkleGit (TargetFolder, "checkout --quiet HEAD"); git.Start (); - - // Reading the standard output HAS to go before - // WaitForExit, or it will hang forever on output > 4096 bytes - git.StandardOutput.ReadToEnd (); git.WaitForExit (); }