7 me=/var/tmp/git-mirror-lock
8 if ! lockfile-create "$me"; then
11 lockfile-touch "$me" & lockpid=$!
12 trap 'kill $lockpid || true; cd "$mepwd"; lockfile-remove "$me"' EXIT
13 trap 'exit 1' INT TERM
15 mkdir -p /var/cache/git/xonotic
16 cd /var/cache/git/xonotic
17 ssh xonotic@git.xonotic.org ./send-git-configs.sh | tar xvf -
19 for X in /var/cache/git/*/*.git; do
21 git config remote.origin.fetch "+refs/*:refs/*"
22 git config remote.origin.mirror "true"
23 git config remote.origin.url "git://git.xonotic.org/${X#/var/cache/git/}"
25 git remote prune origin
27 touch git-daemon-export-ok