Update some docstrings which had got out of date.
Use repo.head.target instead of repo.head.get_object().hex
Merge remote-tracking branch 'kluyver/docstrings-update'