Я использую Git 2.18.0 и пытаюсь заставить Git использовать ssh: // urls в хранилище, исходный файл .gitmodule которого использует file: // urls
Я получил это в .git/config
:
submodule.dut/dev.git.active=true
submodule.dut/dev.git.url=file:///wv/mcs/tedd/repo_lib/dev.git
submodule.dut/locations.git.active=true
url.ssh://orw-tucker-vm/wv/mcs/tedd/repo_lib.insteadof=file:///wv/mcs/tedd/repo_lib```
Then I do:
```bash
% git submodule sync
% git submodule update --init
Но я получаю ошибки:
Cloning into '/home/rsalemi/workspaces/tedd_tb/dut/dev.git'...
fatal: '/wv/mcs/tedd/repo_lib/dev.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'file:///wv/mcs/tedd/repo_lib/dev.git' into submodule path '/home/rsalemi/workspaces/tedd_tb/dut/dev.git' failed
Failed to clone 'dut/dev.git' a second time, aborting
Похоже, Git игнорирует запись конфигурации вместо.
Что я делаю не так?