Moved the code from git-p4 submit to figure out the upstream branch point