--- /dev/null
+#!/bin/bash
+set -e
+. infra/template
+
+case "$(hostname -f)" in
+*.xensource.com)
+ email="ian.jackson@eu.citrix.com"
+ cache=git://git-cache.xs.citrite.net:9419
+ ;;
+*)
+ email=ijackson@chiark.greenend.org.uk
+ ;;
+esac
+
+cat <<END
+[user]
+ email="$email"
+[sendemail]
+ bcc = $email
+END
+
+if [ "$cache" ]; then
+ cat <<END
+[url "$cache/git://"]
+ insteadOf = git://
+[url "$cache/git://"]
+ insteadOf = $cache/git://
+[color]
+ diff = false
+ ui = false
+END
+fi