When replicating Git repositories from Gerrit to Gitorious, the repositories have to be created in Gitorious beforehand. This is a script that compares the list of repositories in both Gerrit and Gitorious and creates the missing ones in the latter. It can also be used to batch create Gitorious repositories.
- Copy
sync-repos.cron
to/etc/cron.d/
andsync-repos.sh
to a preferred location on a centralized job scheduling server - Copy
create-gitorious-repos.rb
to the Gitorious server
sync-repos.sh
- 6 variables need to be set: the Gerrit server and a Gerrit user, the Gitorious server and a user account, the Gitorious MySQL database, and the location ofcreate-gitorious-repos.rb
.sync-repos.cron
- Set the location ofsync-repos.sh
and the user it will run as.create-gitorious-repos.rb
- 2 variables need setting: the Gitorious project repositories will be created into and the path toenvironment.rb
.