http-backend: add GIT_PROJECT_ROOT environment var
commit917adc036086f52b0277ff03d10b7044c9d9d0d2
authorMark Lodato <lodatom@gmail.com>
Sat, 31 Oct 2009 00:47:35 +0000 (30 17:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Nov 2009 01:58:15 +0000 (4 17:58 -0800)
treed89a6783fd237aa309bf84918575404286c6fa84
parent556cfa3b6d316074d41cd73c4659402fdb6207c8
http-backend: add GIT_PROJECT_ROOT environment var

Add a new environment variable, GIT_PROJECT_ROOT, to override the
method of using PATH_TRANSLATED to find the git repository on disk.
This makes it much easier to configure the web server, especially when
the web server's DocumentRoot does not contain the git repositories,
which is the usual case.

Signed-off-by: Mark Lodato <lodatom@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-http-backend.txt
http-backend.c