I'm trying to mirror every android repo to my gitlab account. After I imported ALL of repositories, I tried to use git-repo (repo tool from google) to build android from source.
I changed these line in my default.xml manifest:
<remote name="aosp" fetch="https://android.googlesource.com" review="android-review.googlesource.com" revision="refs/tags/android-5.1.1_r37" />
to this:
<remote name="aosp" fetch="https://gitlab.com/android_source/" review="android-review.googlesource.com" revision="refs/tags/android-5.1.1_r37"/>
I also changed every project name. for example:
<project path="dalvik" name="platform/dalvik" groups="pdk-cw-fs" remote="aosp"/>
to this:
<project path="dalvik" name="platform_dalvik" groups="pdk-cw-fs" remote="aosp"/>
now, here is my problem. when I run repo command
repo sync
I get these type of errors:
Fetching projects: 0% (1/541) Fetching project platform_prebuilts_ndk.git
fatal: Couldn't find remote ref refs/tags/android-5.1.1_r37
fatal: Couldn't find remote ref refs/tags/android-5.1.1_r37
error: Cannot fetch platform_prebuilts_ndk.git
error: Exited sync due to fetch errors
Whats wrong??
you can see default.xml and changed one.
EDIT: I found a solution but I don't like it. I changed this:
<remote name="aosp" fetch="https://gitlab.com/android_source/" review="android-review.googlesource.com" revision="refs/tags/android-5.1.1_r37"/>
to this:
<remote name="aosp" fetch="ssh://git@gitlab.com/android_source/" review="android-review.googlesource.com" revision="refs/tags/android-5.1.1_r37"/>
now I can fetch using git_repo tools. But this is odd. other people should be able to clone my repo.