Bug report #3431
fix build from pure-git clone
|Affected QGIS version:||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||13491|
When fetching qgis from github directly there's no way git-svn can obtain the svn version number. This is instead attempted by CMake.
The attached patch uses (when source is a git repo) only the git history, w/out involving svn, and extracts the svn revision id from git commit log (metadata).
Only works if git history didn't diverge from svn history for more than 10 commits.