Skip to content

Commit

Permalink
Add fallback to -42, if git rev-list doesn't support --count.
Browse files Browse the repository at this point in the history
The --count option was introduced in f69c501832ecd6880602c55565508e70c3a013d5 in git v1.7.2-rc1.
  • Loading branch information
Cyp committed Oct 28, 2010
1 parent 249713b commit 242fa66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build_tools/autorevision/autorevision.cpp
Expand Up @@ -679,6 +679,8 @@ bool RevGitQuery::extractRevision(RevisionInformation& rev_info)
rev_info.low_revisionCount = revCount;
rev_info.revisionCount = revCount;
}
rev_info.low_revisionCount = "-42";
rev_info.revisionCount = "-42";
std::string date = runCommand("git log -1 --pretty=format:%ci");
if (!date.empty())
{
Expand Down

0 comments on commit 242fa66

Please sign in to comment.