Commit 4de96fc
committed
Use
Instead of `git remote`.
Since Git 2.51.0, path collisions in remote names are automatically
detected and rejected when `git remote add` is used to attempt to
add them, since creating such collisions is usually unintentional:
git/git@a5a727c
However, we deliberately do this in our test suite, in the
`make_remote_config_repos.sh` fixture script. When Git 2.51.0 came
to be used on CI, some new test failures arose as a result, as
observed in #2130.
This fixes the script by using two `git config` commands rather
than a `git remote` command to produce the overlap. This technique
is (intentionally) still allowed in Git 2.51.0.git config to make overlapping remotes in a test repo1 parent 8cabd16 commit 4de96fc
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
0 commit comments