Android repo sync doesn't create src directories
<p>I'm trying to compile AOSP for 6.0.1 from source. There's a strange issue I'm seeing for which I haven't found similar posts.</p>

<p>After downloading the source using <code>repo sync -f</code>, repo finishes, but the source directory is empty. It just contains the <code>.repo</code> directory. (<code>.repo</code> is > 30G, so the downloading was fine)</p>

<p>While doing <code>repo sync -f</code> there were a few packages which failed to be fetched. Others have reported sync issues but don't seem to have issues seeing the source or compiling it after repo sync has finished. </p>

<p>Here's what I've tried so far with not much success:</p>

<ol>
<li><p>Initially repo init was initialized with android-6.0.1_r41. Then tried <code>repo init</code> with master branch.</p></li>
<li><p>Changed the tcp window to 0 as mentioned here: <a href="https://source.android.com/source/known-issues.html#difficulties-syncing-the-source-tree-tcp-issues" rel="nofollow noreferrer">https://source.android.com/source/known-issues.html#difficulties-syncing-the-source-tree-tcp-issues</a></p></li>
<li><p>Update git to latest version. </p></li>
</ol>

<p>This is running on virtualbox Ubuntu 16.04.</p>

<p>Is there anyway to force an 'unpack' of the source?</p>