From 04c3aeca3b1d92f2976d2490d00edec910376761 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 25 May 2011 20:20:20 +0100 Subject: [PATCH] hg: fix compile error --- SparkleLib/Hg/SparkleRepoHg.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleLib/Hg/SparkleRepoHg.cs b/SparkleLib/Hg/SparkleRepoHg.cs index e99a1a85..9873d96d 100644 --- a/SparkleLib/Hg/SparkleRepoHg.cs +++ b/SparkleLib/Hg/SparkleRepoHg.cs @@ -63,8 +63,9 @@ namespace SparkleLib { hg.Start (); hg.WaitForExit (); + string hash = hg.StandardOutput.ReadToEnd ().Trim (); if (hash.Length > 0) - return hg.StandardOutput.ReadToEnd ().Trim (); + return hash; else return null; }