vcstools/vcstools — pull request #9 by wjwwood (2012-09-06 20:32:39+00:00)
Title: git: Fixed a bug on Windows where the version hashes have single quotes around them

On Windows, when updating a git repository, I get:

WARNING [vcstools] Command failed: 'git rev-list "remotes/origin/master" "^'c530eb2c4f07fffa5565dea70f29578f6b3df887" --parents'
run at: 'C:\Users\Administrator\devel\groovy\base\catkin'
errcode: 128:
fatal: bad revision '^'c530eb2c4f07fffa5565dea70f29578f6b3df887'
[/vcstools]

This is because of the single quotes around the version hash, so I added a `.strip("'")` in the get_version function. Seems to fix the problem. This is most likely the result of slightly different git outputs on Windows.