Browse Source

Fix path for git revision lookup

pull/1/head
Daniel Grunwald 15 years ago
parent
commit
d5efebf7a4
  1. 4
      src/Tools/UpdateAssemblyInfo/Main.cs

4
src/Tools/UpdateAssemblyInfo/Main.cs

@ -177,8 +177,10 @@ namespace UpdateAssemblyInfo @@ -177,8 +177,10 @@ namespace UpdateAssemblyInfo
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("."));
}
}

Loading…
Cancel
Save