summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-02-21 06:01:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-02-21 06:01:59 (GMT)
commit80ba04ed9b07c34af9cc644f2183b3b80fd81744 (patch)
tree21b97d4c4f968d1335f16292f954dfdbb91353f0 /perl
parent20769079d22a9f8010232bdf6131918c33a1bf69 (diff)
parent22af6fef9b6538c9e87e147a920be9509acf1ddd (diff)
downloadgit-80ba04ed9b07c34af9cc644f2183b3b80fd81744.zip
git-80ba04ed9b07c34af9cc644f2183b3b80fd81744.tar.gz
git-80ba04ed9b07c34af9cc644f2183b3b80fd81744.tar.bz2
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
Diffstat (limited to 'perl')
-rw-r--r--perl/Git/SVN.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git/SVN.pm b/perl/Git/SVN.pm
index 711d268..98518f4 100644
--- a/perl/Git/SVN.pm
+++ b/perl/Git/SVN.pm
@@ -490,7 +490,7 @@ sub refname {
#
# Additionally, % must be escaped because it is used for escaping
# and we want our escaped refname to be reversible
- $refname =~ s{([ \%~\^:\?\*\[\t])}{sprintf('%%%02X',ord($1))}eg;
+ $refname =~ s{([ \%~\^:\?\*\[\t\\])}{sprintf('%%%02X',ord($1))}eg;
# no slash-separated component can begin with a dot .
# /.* becomes /%2E*