summaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorBrian Gernhardt <benji@silverinsanity.com>2007-10-17 10:05:47 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-10-18 03:02:15 -0400
commit2a4b5d5a0701a5f9a953883e21a6e3dc71cd5cc7 (patch)
tree8e128d6fbe2cc2039a6ce5cb8711818d6f8970bd /git-cvsserver.perl
parentcd8ae20195ae09c06d0854f1ebf92d1f1164c927 (diff)
downloadgit-2a4b5d5a0701a5f9a953883e21a6e3dc71cd5cc7.tar.gz
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 13dbd27a80..0d55fec04f 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";