Don't fail if a repo does not have commit file

This commit is contained in:
Pranav K 2016-10-14 08:52:04 -07:00
parent 2c9672f18a
commit 8a2c0ecec1
1 changed files with 0 additions and 5 deletions

View File

@ -248,11 +248,6 @@ var buildTarget = "compile"
if (Environment.GetEnvironmentVariable("KOREBUILD_ADD_ASSEMBLY_INFO") == "1")
{
var commitFile = Path.Combine(repoArtifacts, "commit");
if (!File.Exists(commitFile))
{
throw new FileNotFoundException("Couldn't find the commit file for " + repo + ": " + commitFile);
}
commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]);
}