I am trying to check out a pull request to my local development box so that I can run some tests on it. I found some reference to doing this here, but I can't get it to work correctly.
git fetch refs/pull-requests/$PR_NO/from:$LOCAL_BRANCH
I am not sure what I should replace $LOCAL_BRANCH
with. I have tried 'master' but I get the exception bellow.
$ git fetch origin refs/pull-requests/30/from:master
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
What is the correct way to do this?