Fix bug when syncing a empty repository with no commits

This commit is contained in:
Kristi 2011-02-01 01:20:30 -08:00
parent 3c966c980e
commit 2dea155085

View file

@ -270,7 +270,12 @@ namespace SparkleLib {
UserName = Config ["user.name"];
UserEmail = Config ["user.email"];
_CurrentHash = Head.CurrentCommit.Hash;
if (Head.CurrentCommit == null)
_CurrentHash = null;
else
_CurrentHash = Head.CurrentCommit.Hash;
_IsSyncing = false;
_IsBuffering = false;
_IsPolling = true;