diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-10-18 03:11:17 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-10-18 03:11:17 -0400 |
commit | e75c55844fd0ff96d00173574b1e49cc472ca928 (patch) | |
tree | 1146c04d598cdb0857e9072e82eee2338f8ee4a4 /git-cvsserver.perl | |
parent | Teach core.autocrlf to 'git blame' (diff) | |
parent | Yet more 1.5.3.5 fixes mentioned in release notes (diff) | |
download | tgif-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-x | git-cvsserver.perl | 6 |
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"; |