Created
June 19, 2013 15:18
-
-
Save codyhanson/5815140 to your computer and use it in GitHub Desktop.
Use the littleworkers library to fetch many gitrepos at once.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
from littleworkers import Pool | |
# Define your commands. | |
commands = [ | |
"cd repo1; git fetch", | |
"cd repo2; git fetch", | |
"cd repo3; git fetch", | |
"cd repo4; git fetch", | |
] | |
#fetch em all at once | |
lil = Pool(workers=len(commands)) | |
# Run! | |
lil.run(commands) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment