fix a bug for git 1.8.3

in git 1.8.3 the default branch name is "detached from REVISION" when you `git checkout -q <REVISION>`

if doesn't skip it then `git rev-parse ...` will raise a error while invoking Git._get_revision_from_rev_parse method.