From cd1c4a1312133ef2505008747e345385baab3ee9 Mon Sep 17 00:00:00 2001 From: sclark Date: Oct 06 2017 21:08:57 +0000 Subject: Update .git/config example in doc/usage/pull_requests.rst Under the 'Working with Pull Requests' heading, the new 'fetch' entry in .git/config should refer to 'upstream', not 'origin'. --- diff --git a/doc/usage/pull_requests.rst b/doc/usage/pull_requests.rst index 64b14e7..a252999 100644 --- a/doc/usage/pull_requests.rst +++ b/doc/usage/pull_requests.rst @@ -114,12 +114,12 @@ Locate your remote in the ``.git/config`` file, for example: :: url = ssh://git@pagure.io/pagure.git fetch = +refs/heads/*:refs/remotes/upstream/* -Now add the line ``fetch = +refs/pull/*/head:refs/remotes/origin/pr/*`` to this section. :: +Now add the line ``fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*`` to this section. :: [remote "upstream"] url = ssh://git@pagure.io/pagure.git fetch = +refs/heads/*:refs/remotes/upstream/* - fetch = +refs/pull/*/head:refs/remotes/origin/pr/* + fetch = +refs/pull/*/head:refs/remotes/upstream/pr/* Obviously, the remote url should be matching the url of your project (pagure project in this example).