<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>open</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>Comment (by Roland Haas):</p>
<p>Hackathon task. Easy if we can assume git &gt;= 1.7 on all clusters (it’s from 2010, <a data-is-external-link="true" href="https://en.wikipedia.org/wiki/Git#Releases" rel="nofollow">https://en.wikipedia.org/wiki/Git#Releases</a>). Namely, take my (faulty) commit that removes the current branch logic (which is fragile) and replace by a <code>git clone -b "foo"</code> is branch “foo” is requested.<br>
This may also have the effect of fixing <a href="https://bitbucket.org/einsteintoolkit/tickets/issues/2580/getcomponents-assumes-that-default-branch" rel="nofollow" title="GetComponents assumes that default branch name is &quot;master&quot;" class="ap-connect-link">#2580</a> since there will no longer be a reference to “master” as the default branch in the repo.</p>
<p>‌</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>