<div dir="ltr">FWIW, I add a line to my repo config. The second line (or first fetch) below:<div><div><div><br></div><div><font face="monospace, monospace">[remote "upstream"]</font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>url = <a href="https://github.com/juju/juju">https://github.com/juju/juju</a></font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*</font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>fetch = +refs/heads/*:refs/remotes/upstream/*</font></div></div><div><br></div></div><div>`<font face="monospace, monospace">git fetch</font>` subsequently fetches all PRs. and checking one out becomes:<br></div><div><br></div><div><div><font face="monospace, monospace">git co pr/5876</font></div><div><font face="monospace, monospace">Branch pr/5876 set up to track remote ref refs/pull/5876/head.</font></div><div><font face="monospace, monospace">Switched to a new branch 'pr/5876'</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">The order of fetches in the config is important, from more specific (</font><span style="font-family:monospace,monospace">refs/remotes/upstream/pr/*) </span><span style="font-family:arial,helvetica,sans-serif">to less specific (</span><span style="font-family:monospace,monospace">refs/remotes/upstream/*). </span><font face="arial, helvetica, sans-serif">Inverting them will cause clobber induced churn when fetching, IIRC. </font><span style="font-family:arial,helvetica,sans-serif"> </span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 4, 2016 at 4:59 AM, Chris MacNaughton <span dir="ltr"><<a href="mailto:chris.macnaughton@canonical.com" target="_blank">chris.macnaughton@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<br>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div>That is interesting, I use the same configuration: origin
is me, upstream is the parent fork. I didn't realize this
was uncommon.</div>
</div>
</div>
<fieldset></fieldset>
</blockquote></span>
According to Github, this is the normal, expected practice:
<a href="https://help.github.com/articles/fork-a-repo/#keep-your-fork-synced" target="_blank">https://help.github.com/<wbr>articles/fork-a-repo/#keep-<wbr>your-fork-synced</a><br>
</div>
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/juju-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Reed O'Brien <div><div><span style="font-size:12.8px">✉ </span><a href="mailto:reed.obrien@canonical.com" target="_blank">reed.obrien@canonical.com</a></div><div style="font-size:12.8px">✆ <span title="Call with Google Voice">415-562-6797</span></div></div><div style="font-size:12.8px"><span title="Call with Google Voice"><br></span></div></div></div></div></div>
</div>