Only reset repos that were cloned.

This commit is contained in:
Cesar Blum Silveira 2016-04-11 16:35:45 -07:00
parent 295a5ee349
commit 2235b79a8d
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));