Only reset repos that were cloned.

This commit is contained in:
Cesar Blum Silveira 2016-04-11 11:50:42 -07:00
parent 7f38b7967b
commit 88829cc7d6
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ var buildTarget = "compile"
Parallel.ForEach(repositories, repo =>
{
if (commitsToSync.ContainsKey(repo))
if (commitsToSync.ContainsKey(repo) && Directory.Exists(repo))
{
var syncHash = commitsToSync[repo];
Console.WriteLine(string.Format("Syncing {0} to {1}", repo, syncHash));