View Single Post
merlin1991's Avatar
Posts: 125 | Thanked: 1,142 times | Joined on Feb 2010 @ Austria
#3
I have migrated all CSSU repos to github, attached is the script I used todo it.

It's written in python3 and requires requests and BeautifulSoup.
For debian
Code:
apt-get install python3 python3-requests python3-bs4
Also in the beginning of the script the first 3 github_* values must be adjusted.

The script grabs all repos listed in the file repos.list, that file should be filled with relative gitorious paths, I had it like this:
Code:
community-ssu/alarmd
community-ssu/apt
...
It automatically creates the new repos on gitorious inside an organisation and also sets the description from the one on gitorious.
Then clones the repo locally adjust the remote and pushes all refs to github.
Attached Files
File Type: txt migrate.txt (3.0 KB, 144 views)
__________________
"Fog is neither water nor air, it's something between." Merlin
 

The Following 18 Users Say Thank You to merlin1991 For This Useful Post: