It appears that clone.bundle for platform/build/release is still advertising wrong HEADs for r6/r7/r8 tags?
$ git clone
https://android.googlesource.com/platform/build/release -b android-15.0.0_r6
Cloning into 'release'...
remote: Counting objects: 130, done
remote: Finding sources: 100% (1/1)
remote: Total 23894 (delta 17360), reused 23894 (delta 17360)
Receiving objects: 100% (23894/23894), 3.88 MiB | 13.00 MiB/s, done.
Resolving deltas: 100% (17360/17360), done.
Note: switching to 'eed0c0d4d1746657996a4fb1f8149a6437032465'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
$ wget
https://android.googlesource.com/platform/build/release/clone.bundleHTTP response 307 [
https://android.googlesource.com/platform/build/release/clone.bundle]
Adding URL:
https://storage.googleapis.com/gerritcodereview/android_platform_build_release_clone.bundleSaving 'clone.bundle'
HTTP response 200 [
https://storage.googleapis.com/gerritcodereview/android_platform_build_release_clone.bundle]
clone.bundle 100% [==================================================================>] 3.78M --.-KB/s
[Files: 1 Bytes: 3.78M [6.99MB/s] Redirects: 1 Todo: 0 Errors: 0 ]
$ git clone clone.bundle -b android-15.0.0_r6
Cloning into 'clone'...
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:
git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:
git branch -m <name>
Receiving objects: 100% (23532/23532), 3.77 MiB | 75.78 MiB/s, done.
Resolving deltas: 100% (17113/17113), done.
Note: switching to '00dbb4d78b9aab6738502bd7e2dba370ab8fd800'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
Notice that when cloning from bundle.clone (which is what repo tool does by default), the HEAD is switched to 00dbb4d78b9aab6738502bd7e2dba370ab8fd800 instead of eed0c0d4d1746657996a4fb1f8149a6437032465.