- Subject changed from Handle redirects for git in a clean way to Handle redirects for git in a clean way for AOSP
- Target version set to Replicant 11.0 0001
Replicant mirrors all the repositories it uses in Replicant source code.
AOSP is a bit more complex than the other repositories because we have things like that:
<project path="dalvik" name="platform/dalvik" groups="pdk-cw-fs,pdk-fs" remote="aosp" />
[...]
<project path="device/generic/arm64" name="device/generic/arm64" groups="pdk" remote="aosp" />
So here the URL depth changes between different repositories.
With Replicant 6 and earlier we simply hosted device_generic_arm64 and platform_dalvik.
That simplifies a lot the server configuration but completely breaks automatic rebases in the manifest repository.
So right now we have the following configuration in the server:
- We host device_generic_arm64 and platform_dalvik
- We redirect device/generic/arm64 to device_generic_arm64 manually with things like that:
Redirect /mirrors/AOSP/device/generic/arm64 /mirrors/AOSP/device_generic-arm64
This worked fine because the rules are fixed. However it has huge downsides too:
- we need to remember to add a rules for each new AOSP repository addition, and we will probably forget to do it at some point
- We end up with a huge ruleset