Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
cvsserver: Use exit 1 instead of die when req_Root fails.
author
Brian Gernhardt
<benji@silverinsanity.com>
Wed, 17 Oct 2007 14:05:47 +0000
(10:05 -0400)
committer
Shawn O. Pearce
<spearce@spearce.org>
Thu, 18 Oct 2007 07:02:15 +0000
(
03:02
-0400)
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>
git-cvsserver.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
cd8ae20
)
diff --git
a/git-cvsserver.perl
b/git-cvsserver.perl
index 13dbd27a80adfee43ed6282041b948bd92e5cc12..0d55fec04fa7e3e2a02987543a857a26ae1f96cb 100755
(executable)
--- a/
git-cvsserver.perl
+++ b/
git-cvsserver.perl
@@
-145,8
+145,10
@@
}
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";