Anyone know why I can’t clone the source on my Mac? Getting a 400 error when I try
repo init …
Nate Ridderman
12/01/2020, 2:55 AM
Copy code
➜ androidx-master-dev3 repo init -u <https://android.googlesource.com/platform/manifest> -b androidx-master-dev --partial-clone --clone-filter=blob:limit=10M
Downloading Repo source from <https://gerrit.googlesource.com/git-repo>
remote: Counting objects: 177, done
remote: Finding sources: 100% (8/8)
remote: Total 5713 (delta 2521), reused 5707 (delta 2521)
Receiving objects: 100% (5713/5713), 7.73 MiB | 4.61 MiB/s, done.
Resolving deltas: 100% (2521/2521), done.
Downloading manifest from <https://android.googlesource.com/platform/manifest>
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
fatal: the remote end hung up unexpectedly
manifests:
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
fatal: the remote end hung up unexpectedly
Nate Ridderman
12/02/2020, 2:04 PM
Finally fixed it! Mac OS ships with Git 2.19.0 which it seems is incompatible. In case others run into this and are trying to use brew, you may have to do this - https://stackoverflow.com/a/36544780/389643
Nate Ridderman
12/02/2020, 2:07 PM
also, hot take: repo is a terrible name for an SCM tool. google searches have been fairly fruitless because the term is used so widely for repository