threads / patch / 39709

patchcvsimport: silence regex warning appearing in Perl 5.22.

Subject: [PATCH] cvsimport: silence regex warning appearing in Perl 5.22.

## tl;dr

One message between Jun 24, 2015 and Jun 24, 2015. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Christian Neukirchen· Jun 24, 2015, 14:04 UTC · lore

Since Perl 5.22, "A literal '{' should now be escaped in a pattern". Silence the recently added warning by using \{ instead.

Signed-off-by: Christian Neukirchen <chneukirchen@gmail.com>
---
 git-cvsimport.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to git-cvsimport.perl +1 −1
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 73d367c..8a68777 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -921,7 +921,7 @@ sub commit {
 		# (See check_refname_component in refs.c.)
 		1 while $xtag =~ s/
 			(?: \.\.        # Tag cannot contain '..'.
-			|   \@{         # Tag cannot contain '@{'.
+			|   \@\{        # Tag cannot contain '@{'.
 			| ^ -           # Tag cannot begin with '-'.
 			|   \.lock $    # Tag cannot end with '.lock'.
 			| ^ \.          # Tag cannot begin...
-- 
2.4.4

← back to recent threads