chiark / gitweb /
zealot git cache
[ian-dotfiles.git] / templates / gitconfig.in
index 78dee9960bf86b2edb8b189bc42525d06af7b6ae..6aacb67d6cbd24cf6777ea9b405ce2224f3156ed 100755 (executable)
@@ -8,18 +8,20 @@ case "$(hostname -f)" in
     cache=git://git-cache.xs.citrite.net:9419
     ;;
 *)
+    cache=git://localhost:9419
     email=ijackson@chiark.greenend.org.uk
     ;;
 esac
 
 cat <<END
 [user]
-       email="$email"
+       name = Ian Jackson
+       email = $email
 [sendemail]
-        bcc = $email
+       bcc = $email
 END
 
-case "$(hostname -f)" in
+case "$(hostname)" in
 zealot)
     cat <<END
        smtpdomain = zealot.relativity.greenend.org.uk
@@ -30,6 +32,10 @@ zealot)
 [dgit-distro "debian"]
        username = iwj
        keyid = 0x48B50D39
+[url "git://git.kernel.org/"]
+       insteadOf = git://git.kernel.org/
+[url "git://xenbits.xen.org/linux-pvops.git"]
+       insteadOf = git://xenbits.xen.org/linux-pvops.git
 END
     ;;
 esac
@@ -40,8 +46,11 @@ if [ "$cache" ]; then
         insteadOf = git://
 [url "$cache/git://"]
         insteadOf = $cache/git://
+END
+fi
+
+cat <<END
 [color]
        diff = false
        ui = false
 END
-fi