summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-02-20 22:01:59 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-02-20 22:01:59 -0800
commit80ba04ed9b07c34af9cc644f2183b3b80fd81744 (patch)
tree21b97d4c4f968d1335f16292f954dfdbb91353f0
parentGit 2.12-rc2 (diff)
parentgit-svn: escape backslashes in refnames (diff)
downloadtgif-80ba04ed9b07c34af9cc644f2183b3b80fd81744.tar.xz
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
-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 711d2687a3..98518f4ddb 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*