Diff
1diff --git a/server/config/file.go b/server/config/file.go
2index a4e39eb7cfb063b7b7db7974ff692701a9d72e63..7caa446f0719a8e1cc9685417dffb750d75c8e3a 100644
3--- a/server/config/file.go
4+++ b/server/config/file.go
5@@ -31,11 +31,11 @@ ssh:
6 public_url: "{{ .SSH.PublicURL }}"
7
8 # The path to the SSH server's private key.
9- key_path: "{{ .SSH.KeyPath }}"
10+ key_path: {{ .SSH.KeyPath }}
11
12 # The path to the server's client private key. This key will be used to
13 # authenticate the server to make git requests to ssh remotes.
14- client_key_path: "{{ .SSH.ClientKeyPath }}"
15+ client_key_path: {{ .SSH.ClientKeyPath }}
16
17 # The maximum number of seconds a connection can take.
18 # A value of 0 means no timeout.
19@@ -66,10 +66,10 @@ http:
20 listen_addr: "{{ .HTTP.ListenAddr }}"
21
22 # The path to the TLS private key.
23- tls_key_path: "{{ .HTTP.TLSKeyPath }}"
24+ tls_key_path: {{ .HTTP.TLSKeyPath }}
25
26 # The path to the TLS certificate.
27- tls_cert_path: "{{ .HTTP.TLSCertPath }}"
28+ tls_cert_path: {{ .HTTP.TLSCertPath }}
29
30 # The public URL of the HTTP server.
31 # This is the address that will be used to clone repositories.
32diff --git a/server/hooks/gen.go b/server/hooks/gen.go
33index 67101d513e246d5e220631b9519fbf6e0761b3cd..ac23515dac630743d5cdc414e9306b7563be9310 100644
34--- a/server/hooks/gen.go
35+++ b/server/hooks/gen.go
36@@ -46,6 +46,9 @@ func GenerateHooks(_ context.Context, cfg *config.Config, repo string) error {
37 return err
38 }
39
40+ // Convert to forward slashes for Windows.
41+ ex = filepath.ToSlash(ex)
42+
43 for _, hook := range []string{
44 PreReceiveHook,
45 UpdateHook,