hg: fix compile error

This commit is contained in:
Hylke Bons 2011-05-25 20:20:20 +01:00
parent aa01351e2a
commit 04c3aeca3b

View file

@ -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;
}