diff --git a/src/Tools/UpdateAssemblyInfo/Main.cs b/src/Tools/UpdateAssemblyInfo/Main.cs index 937d7b449bf..46810bd52c3 100644 --- a/src/Tools/UpdateAssemblyInfo/Main.cs +++ b/src/Tools/UpdateAssemblyInfo/Main.cs @@ -177,8 +177,10 @@ static void SetVersionInfo(string fileName, Regex regex, string replacement) static void RetrieveRevisionNumber() { if (revisionNumber == null) { - if (Directory.Exists("..\\.git")) { + if (Directory.Exists(".git")) { ReadRevisionNumberFromGit(); + } else { + Console.WriteLine("There's no git working copy in " + Path.GetFullPath(".")); } }