How to set up a local aosp mirror for use in different roms with source on git?
<p>I'm interested in building a rom who's source is available on github.
To minimize downloads I wanted to mirror the AOSP repository on my local devbox. I used the example given by Google:</p>

<pre><code>$ mkdir -p /usr/local/aosp/mirror
$ cd /usr/local/aosp/mirror
$ repo init -u https://android.googlesource.com/mirror/manifest --mirror
$ repo sync
</code></pre>

<p>After that I changed to my "android" map and did a repo init I did edit the <code>default.xml</code>, changed the path to fetch AOSP in my local path, without <code>https</code>.
When I do a repo sync command, It fails with errors referring to git, are you sure it is a git repository, have the right path etc. 
<strong>Is there somewhere a tutorial I could follow what would show the steps in doing this correctly?</strong> </p>

<p>M</p>