Page 1 of 1

Mirroring esp_idf repository failure

Posted: Thu Feb 18, 2021 3:52 pm
by JasP_whp
I'm trying to create a mirror repository of esp-idf (https://github.com/espressif/esp-idf) using

Code: Select all

git clone --mirror https://github.com/espressif/esp-idf.git

Cloning into bare repository 'esp-idf.git'...
remote: Enumerating objects: 237951, done.
remote: Total 237951 (delta 0), reused 0 (delta 0), pack-reused 237951
Receiving objects: 100% (237951/237951), 149.38 MiB | 158.00 KiB/s, done.
Resolving deltas: 100% (171610/171610), done.
That works fine, but afterward, there's a bad submodule URL in the history somewhere that prevents most further actions. You can see the issue with

Code: Select all

cd esp-idf.git
git fsck

Checking object directories: 100% (256/256), done.
Checking objects: 100% (237951/237951), done.
error in blob 366bd25d0f8e3f58d2f758056508546fe9d909c4: gitmodulesUrl: disallowed submodule url: ../..//jedisct1/libsodium.git
Is this "disallowed submodule url" something you can fix in the repository, or should I find a different solution for what I'm trying to do?

Re: Mirroring esp_idf repository failure

Posted: Tue Mar 02, 2021 8:29 am
by sioiot
Hello, we found that your problem only reproduces on some git versions. You can switch git to 2.20.0, and we tested it normally on this version.