Add protocol, auth, and port support for git SHA lookup in core/git.py