chiark
/
gitweb
/
~ian
/
ian-dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4eed77
)
git: othercache
author
Ian Jackson
<ian.jackson@eu.citrix.com>
Thu, 13 Sep 2018 16:42:22 +0000
(17:42 +0100)
committer
Ian Jackson
<ian.jackson@eu.citrix.com>
Thu, 13 Sep 2018 16:42:22 +0000
(17:42 +0100)
templates/gitconfig.in
patch
|
blob
|
history
diff --git
a/templates/gitconfig.in
b/templates/gitconfig.in
index aa2dd68f2f8e8e61ad06e16735823491dce5b42d..211e36cc19c690a5074f4ba8e8eb21f0703fe40a 100755
(executable)
--- a/
templates/gitconfig.in
+++ b/
templates/gitconfig.in
@@
-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