chiark / gitweb /
git: othercache
[ian-dotfiles.git] / templates / gitconfig.in
index aa2dd68f2f8e8e61ad06e16735823491dce5b42d..211e36cc19c690a5074f4ba8e8eb21f0703fe40a 100755 (executable)
@@ -6,6 +6,7 @@ case "$(hostname -f)" in
 *.xensource.com)
     email="ian.jackson@eu.citrix.com"
     cache=git://git-cache.xs.citrite.net:9419
 *.xensource.com)
     email="ian.jackson@eu.citrix.com"
     cache=git://git-cache.xs.citrite.net:9419
+    othercache=drall:9419
     ;;
 *)
     cache=git://localhost:9419
     ;;
 *)
     cache=git://localhost:9419
@@ -50,6 +51,18 @@ if [ "$cache" ]; then
 [url "$cache/"]
         insteadOf = $cache/
 END
 [url "$cache/"]
         insteadOf = $cache/
 END
+
+   if [ "$othercache" ]; then
+       cat <<END
+[url "git://$othercache/http://"]
+        insteadOf = git://$othercache/http://
+[url "git://$othercache/https://"]
+        insteadOf = git://$othercache/https://
+[url "git://$othercache/git://"]
+        insteadOf = git://$othercache/git://
+END
+    fi
+
 fi
 
 cat <<END
 fi
 
 cat <<END