diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-12-30 19:44:48 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-01-04 15:31:04 -0800 |
commit | 3aa30471065b212ee6563f3bfcb2de92a2bf2fa9 (patch) | |
tree | 006190a6d181255fe6afdf80295cc5afe08e72f8 /base85.c | |
parent | f2665ec9fa42b75d92d0301cff85362836c5729a (diff) | |
download | git-3aa30471065b212ee6563f3bfcb2de92a2bf2fa9.tar.gz |
lib-git-svn.sh: Move web-server handling code into separate function
This library file is currently sourced by 57 test files, of which
only four may (optionally) start a web-server in order to access
the svn repo via an http url, rather than a file url.
In addition to isolating the current web-server handling code from
the majority of tests, in a new prepare_httpd function, we also
add some more error checking and reporting code to validate the
apache installation. Only those tests which attempt to start the
web-server, by calling start_httpd, will execute this code.
Note that it is important for start_httpd to return an error
indication, if prepare_httpd fails, so that the failure to use
the web-server, as requested by the user, should not go unnoticed.
(Unless the svnrepo variable is set to an http url at the end of
start_httpd, the remaining tests will use file urls, without
comment.)
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'base85.c')
0 files changed, 0 insertions, 0 deletions