about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-05-17 10:33:11 +0200
committerGitHub <noreply@github.com>2025-05-17 10:33:11 +0200
commit4c52b5d17a136c292289bf587c024d9738c1c100 (patch)
tree1da3fcab9d07fe67d56e9fbced102df9ac210a4d
parent8e30998c1832d39cb22ec84bf1703ca7211ee2a8 (diff)
parenta64ed161e271a373358bf292de8dab858f8b6bce (diff)
downloadrust-4c52b5d17a136c292289bf587c024d9738c1c100.tar.gz
rust-4c52b5d17a136c292289bf587c024d9738c1c100.zip
Rollup merge of #141056 - erickt:enzyme, r=Mark-Simulacrum
Lowercase git url for rust-lang/enzyme.git

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.
-rw-r--r--.gitmodules2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index d09d81ccadc..fbf2f59b38d 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -45,7 +45,7 @@
 	shallow = true
 [submodule "src/tools/enzyme"]
 	path = src/tools/enzyme
-	url = https://github.com/rust-lang/Enzyme.git
+	url = https://github.com/rust-lang/enzyme.git
 	shallow = true
 [submodule "src/gcc"]
 	path = src/gcc