Merge remote branch 'origin/terencehill/mapping_update'
[xonotic/xonotic.git] / misc / infrastructure / git-mirror-update.sh
1 #!/bin/sh
2
3 set -e
4
5 #exec >/dev/null 2>&1
6
7 mkdir -p /var/cache/git/xonotic
8 cd /var/cache/git/xonotic
9 ssh xonotic@git.xonotic.org ./send-git-configs.sh | tar xvf -
10
11 for X in /var/cache/git/*/*.git; do
12         cd "$X"
13         git config remote.origin.fetch "+refs/*:refs/*"
14         git config remote.origin.mirror "true"
15         git config remote.origin.url "git://nl.git.xonotic.org/${X#/var/cache/git/}"
16         git fetch
17         git remote prune origin
18         git gc --auto
19         touch git-daemon-export-ok
20 done