Skip to content

Instantly share code, notes, and snippets.

@diago
diago / update_repos.sh
Created November 2, 2011 15:10
Updating all git repos for Redmine
#!/bin/bash
repos=( $(find /opt/repositories -type d -name .git) )
for x in ${repos[@]}; do
cd ${x%.*}
git pull origin master
done
ruby /opt/redmine/script/runner "Repository.fetch_changesets" -e production > /dev/null 2>&1 &