Skip to content

Instantly share code, notes, and snippets.

@codyhanson
Created June 19, 2013 15:18
Show Gist options
  • Save codyhanson/5815140 to your computer and use it in GitHub Desktop.
Save codyhanson/5815140 to your computer and use it in GitHub Desktop.
Use the littleworkers library to fetch many gitrepos at once.
#! /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