Skip to content

Commit 80ba04e

Browse files
committed
Merge branch 'svn-escape-backslash' of git://bogomips.org/git-svn
* 'svn-escape-backslash' of git://bogomips.org/git-svn: git-svn: escape backslashes in refnames
2 parents 2076907 + 22af6fe commit 80ba04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perl/Git/SVN.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ sub refname {
490490
#
491491
# Additionally, % must be escaped because it is used for escaping
492492
# and we want our escaped refname to be reversible
493-
$refname =~ s{([ \%~\^:\?\*\[\t])}{sprintf('%%%02X',ord($1))}eg;
493+
$refname =~ s{([ \%~\^:\?\*\[\t\\])}{sprintf('%%%02X',ord($1))}eg;
494494

495495
# no slash-separated component can begin with a dot .
496496
# /.* becomes /%2E*

0 commit comments

Comments
 (0)