Created
November 30, 2010 22:01
-
-
Save mrtazz/722507 to your computer and use it in GitHub Desktop.
zsh script to update 'git clone --mirror' repos for redmine
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/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