Hi @matteosister,

``git reset -q HEAD -- test`` returns 0 in the first case. In the second case I still see ``fatal: Failed to resolve HEAD as a valid ref.`` (and exit code 128).

With a really quick search I found this: https://github.com/vierbergenlars/php-semver. Looks like it does exactly what we'd want. The question then is: in what version of git did this behaviour change?