summaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-10-18 03:11:17 -0400
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-10-18 03:11:17 -0400
commite75c55844fd0ff96d00173574b1e49cc472ca928 (patch)
tree1146c04d598cdb0857e9072e82eee2338f8ee4a4 /git-cvsserver.perl
parentTeach core.autocrlf to 'git blame' (diff)
parentYet more 1.5.3.5 fixes mentioned in release notes (diff)
downloadtgif-e75c55844fd0ff96d00173574b1e49cc472ca928.tar.xz
Merge branch 'maint'
* maint: Yet more 1.5.3.5 fixes mentioned in release notes cvsserver: Use exit 1 instead of die when req_Root fails. git-blame shouldn't crash if run in an unmerged tree git-config: print error message if the config file cannot be read fixing output of non-fast-forward output of post-receive-email
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";