From 6317ea30c6cba19c68c801eaa0937b5f1f4d286b Mon Sep 17 00:00:00 2001 From: Pranav K Date: Fri, 14 Oct 2016 09:36:29 -0700 Subject: [PATCH] Don't read commit file if it doesn't exist --- makefile.shade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile.shade b/makefile.shade index 1f1a414729..0cf14769f1 100644 --- a/makefile.shade +++ b/makefile.shade @@ -248,7 +248,10 @@ var buildTarget = "compile" if (Environment.GetEnvironmentVariable("KOREBUILD_ADD_ASSEMBLY_INFO") == "1") { var commitFile = Path.Combine(repoArtifacts, "commit"); - commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]); + if (File.Exists(commitFile)) + { + commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]); + } } if (!string.IsNullOrEmpty(ciVolatileShare))