Issue a Pull Request in Stash

I am trying to test a transfer request to my local development unit so that I can run some tests on it. I found a link to this here , but I cannot get it to work correctly.

git fetch refs/pull-requests/$PR_NO/from:$LOCAL_BRANCH

I'm not sure what I should replace $LOCAL_BRANCHwith. I tried the "master", but I will get an exception.

$ 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 right way to do this?

+4
source share
1 answer

, $LOCAL_BRANCH () , - . "pr_30_from", . , , - , .

, .

PS. , ( , Stash 2.9+). "30" /, .

+5

Source: https://habr.com/ru/post/1532708/


All Articles