mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-27 04:31:18 +00:00

On Fuchsia, we have an internal Gerrit mirrors of the rust repositories to avoid excess load on the public github servers. Since rust uses submodules, we need to then use git's `url.<base>.insteadOf` to point our checkouts at our mirrors. We'd prefer to be able to point all repositories under `https://github.com/rust-lang` to `https://rust.googlesource.com/rust-lang`, but unfortunately it seems that when Rust mirrored Enzyme, the repository name was lower cased to `https://github.com/rust-lang/enzyme`, but kept the name capitalized in the .gitmodules file. This didn't cause a problem for Github, which seems to handle repository names in a case insensitive way, Gerrit is case sensitive, so we can't use a glob rule. Instead we have to setup `insteadOf` rules for each repository. This renames the URL to match the case of the repository name, which should avoid the issue.
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
[submodule "src/doc/nomicon"]
|
|
path = src/doc/nomicon
|
|
url = https://github.com/rust-lang/nomicon.git
|
|
shallow = true
|
|
[submodule "src/tools/cargo"]
|
|
path = src/tools/cargo
|
|
url = https://github.com/rust-lang/cargo.git
|
|
shallow = true
|
|
[submodule "src/doc/reference"]
|
|
path = src/doc/reference
|
|
url = https://github.com/rust-lang/reference.git
|
|
shallow = true
|
|
[submodule "src/doc/book"]
|
|
path = src/doc/book
|
|
url = https://github.com/rust-lang/book.git
|
|
shallow = true
|
|
[submodule "src/doc/rust-by-example"]
|
|
path = src/doc/rust-by-example
|
|
url = https://github.com/rust-lang/rust-by-example.git
|
|
shallow = true
|
|
[submodule "library/stdarch"]
|
|
path = library/stdarch
|
|
url = https://github.com/rust-lang/stdarch.git
|
|
shallow = true
|
|
[submodule "src/doc/edition-guide"]
|
|
path = src/doc/edition-guide
|
|
url = https://github.com/rust-lang/edition-guide.git
|
|
shallow = true
|
|
[submodule "src/llvm-project"]
|
|
path = src/llvm-project
|
|
url = https://github.com/rust-lang/llvm-project.git
|
|
branch = rustc/20.1-2025-02-13
|
|
shallow = true
|
|
[submodule "src/doc/embedded-book"]
|
|
path = src/doc/embedded-book
|
|
url = https://github.com/rust-embedded/book.git
|
|
shallow = true
|
|
[submodule "library/backtrace"]
|
|
path = library/backtrace
|
|
url = https://github.com/rust-lang/backtrace-rs.git
|
|
shallow = true
|
|
[submodule "src/tools/rustc-perf"]
|
|
path = src/tools/rustc-perf
|
|
url = https://github.com/rust-lang/rustc-perf.git
|
|
shallow = true
|
|
[submodule "src/tools/enzyme"]
|
|
path = src/tools/enzyme
|
|
url = https://github.com/rust-lang/enzyme.git
|
|
shallow = true
|
|
[submodule "src/gcc"]
|
|
path = src/gcc
|
|
url = https://github.com/rust-lang/gcc.git
|
|
shallow = true
|