From: Junio C Hamano <gitster@pobox.com>
To: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Cc: GIT Mailing-list <git@vger.kernel.org>,
normalperson@yhbt.net, avarab@gmail.com
Subject: Re: [PATCH 04/14] lib-git-svn.sh: Add check for missing mod_dav_svn module
Date: Tue, 14 Dec 2010 11:11:03 -0800 [thread overview]
Message-ID: <7v8vzsuq48.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <4D07B63A.2020501@ramsay1.demon.co.uk> (Ramsay Jones's message of "Tue\, 14 Dec 2010 18\:23\:54 +0000")
Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:
> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
> ---
> t/lib-git-svn.sh | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh
> index 919d45a..154f3d3 100644
> --- a/t/lib-git-svn.sh
> +++ b/t/lib-git-svn.sh
> @@ -101,6 +101,11 @@ start_httpd () {
> echo >&2 'SVN_HTTPD_PORT is not defined!'
> return
> fi
> + if test ! -e "$SVN_HTTPD_MODULE_PATH/mod_dav_svn.so"
> + then
> + echo >&2 'Apache module "mod_dav_svn.so" not found'
> + return 1
> + fi
Others seem to check with "test -f" for things like this.
Also why "return 1" only on this codepath?
> if test -z "$repo_base_path"
> then
> repo_base_path=svn
> @@ -128,6 +133,7 @@ EOF
>
> stop_httpd () {
> test -z "$SVN_HTTPD_PORT" && return
> + test ! -e "$GIT_DIR/httpd.conf" && return
> "$SVN_HTTPD_PATH" -f "$GIT_DIR"/httpd.conf -k stop
> }
>
> --
> 1.7.3
next prev parent reply other threads:[~2010-12-14 19:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-14 18:23 [PATCH 04/14] lib-git-svn.sh: Add check for missing mod_dav_svn module Ramsay Jones
2010-12-14 19:11 ` Junio C Hamano [this message]
2010-12-16 20:00 ` Ramsay Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v8vzsuq48.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
--cc=ramsay@ramsay1.demon.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox