Find the commit-ish reference in a git url.