From 456808e7db48170958b0743d0a1adfba9fabb5d9 Mon Sep 17 00:00:00 2001 From: Kamil Páral Date: Feb 28 2018 17:14:49 +0000 Subject: docs: switch ordering of PR remote configuration If the PR fetch line is not stated as the second one in git config, then the branch is configured with a standard merge remote, and the PR branch can't be pulled. The specific PR fetch line has to be stated as the first one. --- diff --git a/doc/usage/pull_requests.rst b/doc/usage/pull_requests.rst index a824e72..37bbd23 100644 --- a/doc/usage/pull_requests.rst +++ b/doc/usage/pull_requests.rst @@ -118,12 +118,12 @@ Now add this line:: fetch = +refs/pull/*/head:refs/remotes/origin/pr/* -to that section, like this:: +to that section as **the first fetch line**, like this:: [remote "origin"] url = ssh://git@pagure.io/pagure.git - fetch = +refs/heads/*:refs/remotes/origin/* fetch = +refs/pull/*/head:refs/remotes/origin/pr/* + fetch = +refs/heads/*:refs/remotes/origin/* Obviously, the remote url should be matching the url of your project (pagure project in this example).