To clone all ROS2 repositories

asked 2021-02-04 03:13:18 -0600

Is there a simple script that allows one to clone all ROS2 repositories listed here: https://github.com/ros2? Say, i want the eloquent branch for each repo.

edit retag flag offensive close merge delete

Comments

3

I'm not sure this is ROS-specific.

"All ROS 2 repositories" is ambiguous also.

If you're interested in cloning all repositories in a certain Github organisation, then solutions like this one could work (but there are many more).

If you're looking to clone the source repositories of specific ROS 2 releases, then you'd probably want to use something like:

vcs import /path/to/where/repos/should/be/cloned --input https://github.com/ros2/ros2/raw/eloquent-release/ros2.repos

this would clone the source repositories of the relevant packages/dependencies for Eloquent, patch release 2.

If you replace eloquent-release with eloquent, you'd get the state of the branches targetting Eloquent in those repositories, which is potentially different from the packages released into Eloquent.

gvdhoorn gravatar image gvdhoorn  ( 2021-02-04 05:03:07 -0600 )edit
1

This question is not ROS related, it's more a git clone problem. afaik there is no 'standard' solution for this. you can use the github API to get all repositories of a user/organization, then you can just loop over that and git clone -b it.

crnewton gravatar image crnewton  ( 2021-02-04 05:05:47 -0600 )edit