On Thursday 03 of December 2015 18:24:32 Michael Howard wrote:
On 03/12/2015 02:31, Slávek Banko wrote:
://mirror.git.trinitydesktop.org/cgit/
Script switch_all_submodules_to_head_and_clean was modified to facilitate cloning from GIT mirror. On wiki page has been added information about cloning from GIT mirror. By using mentioned script the cloning from the mirror should be easy and fast.
Hi Slávek,
My clone of the mirror completed but it must have started prior to your changes to 'switch_all_submodules_to_head_and_clean'. So this script is out of date. If I replace it with your modified version and run it as per the wiki, i.e ....
git submodule init -- scripts git submodule update -- scripts ./scripts/switch_all_submodules_to_head_and_clean anonymous
.... git errors when it gets to the 'scripts' dir complaining about overwriting my local changes. I've been unable to sort this out as 'git' commands typed at the command line are targeting the main repo and not your mirror (I guess). Is there a way to sort this without re-cloning the whole mirror?
Regards, Mike.
Currently the repository 'scripts' should include an updated script, making another run switch_all_submodules_to_head_and_clean should be successful. Alternatively, you can copy script switch_all_submodules_to_head_and_clean to another path and run from this path. The script can be run repeatedly - to perform a complete update of all repositories.
If you want to clone again only some submodules from whole GIT tree, remove the following:
1) Git folder of particular module in .git/modules/<module-path> - completely. For example .git/modules/main/tdelibs
2) The contents of working folder of particular module. For example main/tdelibs/*
3) Information about particular module in file .git/config For example: [submodule "main/tdebase"] url = http://mirror.git.trinitydesktop.org/cgit/tdebase
And then run again script switch_all_submodules_to_head_and_clean. All missing modules will be re-cloned.