diff --git a/Source/Build.UpdateVersion/Program.cs b/Source/Build.UpdateVersion/Program.cs index 6cdcdcf8..ca30c4f0 100644 --- a/Source/Build.UpdateVersion/Program.cs +++ b/Source/Build.UpdateVersion/Program.cs @@ -114,7 +114,7 @@ namespace Build.UpdateVersion static string RetrieveRevisionNumber(DateTime now) { double timespan = now.Subtract(new DateTime(2010, 1, 1)).TotalDays; - string revision = RetrieveGitRevision() ?? RetrieveSvnRevision() ?? RetrieveBzrRevision() ?? RetrieveSeconds(timespan); + string revision = RetrieveGitRevision() ?? RetrieveSvnRevision() ?? RetrieveBzrRevision() ?? "0"; revision = revision.Trim(); return revision; }