aboutsummaryrefslogtreecommitdiff
path: root/mirror_update.sh
blob: d48125aab796464c3dbc43568f388b397b08ed7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# fetch mirrors

[ ! -d "$1" ] && exit 1

ROOTDIR=$(realpath "$1")

for dir in $(ls -d "$ROOTDIR/*.git/"); do
	echo $dir
	git -C "$dir" fetch --mirror
done