silverstripe/sapphire — pull request #180 by oddnoc (2012-02-01 19:48:19+00:00)
Title: BUGFIX/ENHANCEMENT: LeftAndMain::versionFromVersionFile

Ever since the project migrated to git, the version indicator in the CMS has been broken, because the $URL$ svn keyword did not get expanded. This pull request enhances LeftAndMain::versionFromVersionFile() to return the entire contents of silverstripe_version if the contents do not match the regexes for an svn URL. It also adds a .gitattributes file specifying a "describe" filter for silverstripe_version. This does require some setup in your gitconfig, namely this:

[filter "describe"]
smudge = git describe
clean = echo '$URL$'

If you guys like this fix, a similar thing can be done for the cms module.