dos2unix
Fix Repository.get_git_ref's parameter (#268)

It doesn't have to start with "refs/" anymore. This leads to a small
inconsistency with create_git_ref, but this inconsistency is present
in GitHub API v3, so it's acceptable, or maybe even better to keep
it in PyGithub.
Check main code for asserts (follow-up of #268)