chiark / gitweb /
Fix up gitconfig template
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 10 Jun 2016 17:59:15 +0000 (18:59 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 10 Jun 2016 17:59:15 +0000 (18:59 +0100)
templates/gitconfig.in

index 7e874d2..78dee99 100755 (executable)
@@ -19,6 +19,21 @@ cat <<END
         bcc = $email
 END
 
+case "$(hostname -f)" in
+zealot)
+    cat <<END
+       smtpdomain = zealot.relativity.greenend.org.uk
+       smtpserver = tunnel.chiark.greenend.org.uk
+       smtpserverport = 25
+       envelopesender = $email
+       bcc = $email
+[dgit-distro "debian"]
+       username = iwj
+       keyid = 0x48B50D39
+END
+    ;;
+esac
+
 if [ "$cache" ]; then
     cat <<END
 [url "$cache/git://"]
@@ -26,7 +41,7 @@ if [ "$cache" ]; then
 [url "$cache/git://"]
         insteadOf = $cache/git://
 [color]
-        diff = false
-        ui = false
+       diff = false
+       ui = false
 END
 fi