rpavlik/cmake-modules — pull request #6 by phire (2011-12-05 11:40:23+00:00)
Title: GetGitRevisionDescription doesn't work when CMAKE_SOURCE_DIR isn't the root git directory

If CMAKE_SOURCE_DIR is not the root directory of the git repo, then
get_git_head_revision will fail, unable to find the .git/ folder.
This commit makes get_git_head_revision work its way up the path
and search all parent directories for .git/