http: tell server that the client understands v1
Tell a server that protocol v1 can be used by sending the http header 'Git-Protocol' with 'version=1' indicating this. Also teach the apache http server to pass through the 'Git-Protocol' header as an environment variable 'GIT_PROTOCOL'. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
0c2f0d2703
commit
19113a26b6
@ -67,6 +67,9 @@ LockFile accept.lock
|
||||
<IfModule !mod_unixd.c>
|
||||
LoadModule unixd_module modules/mod_unixd.so
|
||||
</IfModule>
|
||||
<IfModule !mod_setenvif.c>
|
||||
LoadModule setenvif_module modules/mod_setenvif.so
|
||||
</IfModule>
|
||||
</IfVersion>
|
||||
|
||||
PassEnv GIT_VALGRIND
|
||||
@ -76,6 +79,10 @@ PassEnv ASAN_OPTIONS
|
||||
PassEnv GIT_TRACE
|
||||
PassEnv GIT_CONFIG_NOSYSTEM
|
||||
|
||||
<IfVersion >= 2.4>
|
||||
SetEnvIf Git-Protocol ".*" GIT_PROTOCOL=$0
|
||||
</IfVersion>
|
||||
|
||||
Alias /dumb/ www/
|
||||
Alias /auth/dumb/ www/auth/dumb/
|
||||
|
||||
|
Reference in New Issue
Block a user