summaryrefslogtreecommitdiff
path: root/scripts/git-mirror.cron
blob: 4dc385fb710672a0f5daa35062eabf1ec4ba264e (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

find /var/git -maxdepth 2 -name config -type f | \
	xargs grep -F '[remote "github"]' -l | \
	xargs dirname  | \
	while read d
		do git -C $d push -q github --mirror || echo "Mirroring $d failed"
	done