Browse Source

Fix path for git revision lookup

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

4
src/Tools/UpdateAssemblyInfo/Main.cs

@ -177,8 +177,10 @@ namespace UpdateAssemblyInfo
static void RetrieveRevisionNumber() static void RetrieveRevisionNumber()
{ {
if (revisionNumber == null) { if (revisionNumber == null) {
if (Directory.Exists("..\\.git")) { if (Directory.Exists(".git")) {
ReadRevisionNumberFromGit(); ReadRevisionNumberFromGit();
} else {
Console.WriteLine("There's no git working copy in " + Path.GetFullPath("."));
} }
} }

Loading…
Cancel
Save