Skip to content

Instantly share code, notes, and snippets.

@mrtazz
Created November 30, 2010 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrtazz/722507 to your computer and use it in GitHub Desktop.
Save mrtazz/722507 to your computer and use it in GitHub Desktop.
zsh script to update 'git clone --mirror' repos for redmine
#!/usr/local/bin/zsh
# variables
gitcmd="/usr/local/bin/git"
REPOS="/home/redmine/repos/"
repos=(`ls -1 ${REPOS}`)
for r in ${repos[@]}
do
cd ${REPOS}${r} && $gitcmd fetch
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment