summaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorBrian Gernhardt <benji@silverinsanity.com>2007-10-17 14:05:47 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-10-18 07:02:15 (GMT)
commit2a4b5d5a0701a5f9a953883e21a6e3dc71cd5cc7 (patch)
tree8e128d6fbe2cc2039a6ce5cb8711818d6f8970bd /git-cvsserver.perl
parentcd8ae20195ae09c06d0854f1ebf92d1f1164c927 (diff)
downloadgit-2a4b5d5a0701a5f9a953883e21a6e3dc71cd5cc7.zip
git-2a4b5d5a0701a5f9a953883e21a6e3dc71cd5cc7.tar.gz
git-2a4b5d5a0701a5f9a953883e21a6e3dc71cd5cc7.tar.bz2
cvsserver: Use exit 1 instead of die when req_Root fails.
This was causing test failures because die was exiting 255. Signed-off-by: Brian Gernhardt <benji@silverinsanity.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-xgit-cvsserver.perl6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 13dbd27..0d55fec 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -145,8 +145,10 @@ if ($state->{method} eq 'pserver') {
}
my $request = $1;
$line = <STDIN>; chomp $line;
- req_Root('root', $line) # reuse Root
- or die "E Invalid root $line \n";
+ unless (req_Root('root', $line)) { # reuse Root
+ print "E Invalid root $line \n";
+ exit 1;
+ }
$line = <STDIN>; chomp $line;
unless ($line eq 'anonymous') {
print "E Only anonymous user allowed via pserver\n";