Skip to content

Commit fce3750

Browse files
committed
Merge branch 'op/cvsserver-perl-warning' into seen
Recent versions of Perl started warning against "! A =~ /pattern/" which does not negate the result of the matching. * op/cvsserver-perl-warning: cvsserver: avoid precedence problem between ! and %s
2 parents ef3e2ab + c0f351e commit fce3750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-cvsserver.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5009,7 +5009,7 @@ sub escapeRefName
50095009
# = "_-xx-" Where "xx" is the hexadecimal representation of the
50105010
# desired ASCII character byte. (for anything else)
50115011

5012-
if(! $refName=~/^[1-9][0-9]*(\.[1-9][0-9]*)*$/)
5012+
if ($refName !~ /^[1-9][0-9]*(\.[1-9][0-9]*)*$/)
50135013
{
50145014
$refName=~s/_-/_-u--/g;
50155015
$refName=~s/\./_-p-/g;

0 commit comments

Comments
 (0)