Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Fix path for git revision lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrunwald committed Aug 27, 2010
1 parent f2338df commit d5efebf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tools/UpdateAssemblyInfo/Main.cs
Expand Up @@ -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("."));
}
}

Expand Down

0 comments on commit d5efebf

Please sign in to comment.