vcstools / rosinstall

Other
10 stars 21 forks source link

Allow for gitfile mechanism for submodules #83

Closed eacousineau closed 11 years ago

eacousineau commented 11 years ago

Changed detect_presence() to use os.path.exist() for git to accomodate gitfile mechanism. Tried it out by recursively cloning a supermodule, then running the following command:

git submodule-ext --no-cd 'rosws set -y $path --git $(cd $path && git config remote.origin.url)'

(NOTE: git submodule-ext is a modded command here: https://github.com/eacousineau/util) Worked for updating branches.

This would allow users to initialize a workspace inside a supermodule if they choose and still be able to update submodules it via rosws update.

Goal here was trying to bridge between rosinstall (bulk install, familiarity) and git submodules (granularity for tracking precise commits, url updating, etc.) Maybe this would be useful if the non-git repos are cloned with remote-helpers or in ignored?

tkruse commented 11 years ago

Merged. Thanks for the pull request. This reflects an earlier change we made to vcstools/src/vcstools/git.py. Change will be released with 0.6.29