I'm guessing that you use "the public_url" of the branch, or the "master" of the branch, but not the "public url of the master branch".
I'm guessing that you use "the public_url" of the branch, or the "master" of the branch, but not the "public url of the master branch".