mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Make git-pr set up branch for pulling (#570)
With these changes, the pr/nn branches created by git-pr also support `git pull` to get PR updates.
This commit is contained in:
parent
93c2830ce7
commit
241069ddac
|
|
@ -16,4 +16,7 @@ else
|
|||
id=$1
|
||||
branch=pr/$id
|
||||
fi
|
||||
git fetch -fu $remote refs/pull/$id/head:$branch && git checkout $branch
|
||||
git fetch -fu $remote refs/pull/$id/head:$branch && \
|
||||
git checkout $branch && \
|
||||
git config --local --replace branch.\"$branch\".merge refs/pull/$id/head && \
|
||||
git config --local --replace branch.\"$branch\".remote $remote;
|
||||
|
|
|
|||
Loading…
Reference in a new issue