composer/composer — pull request #1046 by zczapran (2012-08-30 21:05:38+00:00)
Title: #1043: in VersionParser only truncate the version if hash

The issue raised by @stof is described here: https://github.com/composer/composer/issues/1043.

Basically in VersionParser::formatVersion the version is truncated only if the version contains a hash. Otherwise leave the field as it is.

I left the short hash length 6 despite @stof suggestion to use 7 characters (as this is the common convention).