Fix bug in _get_commit_for_refspec (not all tags are tag objects, only annotated tags are)
fix a bunch of test :)