<html>#2070: shallow checkouts do not work with branches
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>resolved</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>GetComponents</td></tr>
</table>

<p>Changes (by Steven R. Brandt):</p>
<p><table>
<tr><td>status:</td><td>resolved (was open)</td></tr>
</table></p>
<p>Currently using both --shallow and a branch (rather than master) fails since GetComponents wants to first clone the full repo then switch to the requested branch which fails with a shallow clone.</p>
<p>However newer versions of git (&gt;=1.7) support a "-b" (branch) option for clone and that one works fine even with shallow clones.</p>
<p>My recollection is that we could not use this method initially since there were clusters around that only offered git 1.6 (queenbee likely). This is no longer the case and all clusters in simfactory offer at least git 1.7.</p>
<p>This pull request:</p>
<p><a href="https://github.com/gridaphobe/CRL/pull/6/files" rel="nofollow" class="ap-connect-link">https://github.com/gridaphobe/CRL/pull/6/files</a></p>
<p>both fixes the problem and simplifies the code.</p>
<p><strong>Keyword:</strong></p>
<p>Comment (by Steven R. Brandt):</p>
<p>Now git clone combines the use of --depth 1, --branch, and --single-branch</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2070/shallow-checkouts-do-not-work-with'>https://bitbucket.org/einsteintoolkit/tickets/issues/2070/shallow-checkouts-do-not-work-with</a></p>
</html>