I don't know if this is the git config for tde or me that is causing the git clone of the tde tree to fail to clone the needed admin, cmake and other submodules when doing a clone of the entire project.
I cloned using:
git clone http://drankin@scm.trinitydesktop.org/scm/git/tde ./scripts/switch_all_submodules_to_head_and_clean
I have since used:
git pull ./scripts/switch_all_submodules_to_head_and_clean git submodule update --init
git reports the tree is up to date: 10:00 archangel:/dat_f/tde> git pull Already up-to-date.
However, working on tqtinterface, the tqtinterface/admin and tqtinterface/cmake directories are empty -- and tqtinterface will not build. Comparing what I see browsing the git repository online and what I have locally, there is no question files are missing.
For example, browsing:
http://git.trinitydesktop.org/cgit/admin/tree http://git.trinitydesktop.org/cgit/cmake/tree
both show fully populated directories on the server. However looking at the local copy I have after cloning -- I have nothing in either directory:
10:00 archangel:/dat_f/tde> ls -al main/dependencies/tqtinterface/{admin,cmake} main/dependencies/tqtinterface/admin: total 8 drwxr-xr-x 2 david david 4096 Feb 8 18:47 . drwxr-xr-x 5 david david 4096 Feb 8 18:47 ..
main/dependencies/tqtinterface/cmake: total 8 drwxr-xr-x 2 david david 4096 Feb 8 18:47 . drwxr-xr-x 5 david david 4096 Feb 8 18:47 ..
How is this possible? Is it me or git? Are there other command needed to activate the submodules after cloning the entire project and running the switch_all_submodules_to_head_and_clean script?
Also, when I run the switch_all_submodules_to_head_and_clean script, I get the following error:
This script can only be run from a top level git directory. Exiting... Stopping at 'experimental'; script returned non-zero status.
Now when I try and run the update_all_submodules script, I get errors like:
fatal: Not a git repository: /dat_e/tde/.git/modules/experimental Unable to find current revision in submodule path 'experimental' fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface Committing changes to /home/david/tdegit/tde fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface
fatal: Not a git repository: /dat_e/tde/.git/modules/experimental Unable to find current revision in submodule path 'experimental' fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface fatal: Not a git repository: /dat_e/tde/.git/modules/main/dependencies/tqtinterface Committing changes to /home/david/tdegit/tde fatal: Path 'main/dependencies/tqtinterface/cmake' is in submodule 'main/dependencies/tqtinterface' error: pathspec 'main/dependencies/tqtinterface/cmake' did not match any file(s) known to git.
Can I fix this, or do I just need to pull another complete copy of the tree?