summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-02-20 22:01:59 -0800
committerJunio C Hamano <gitster@pobox.com>2017-02-20 22:01:59 -0800
commit80ba04ed9b07c34af9cc644f2183b3b80fd81744 (patch)
tree21b97d4c4f968d1335f16292f954dfdbb91353f0
parent20769079d22a9f8010232bdf6131918c33a1bf69 (diff)
parent22af6fef9b6538c9e87e147a920be9509acf1ddd (diff)
downloadgit-80ba04ed9b07c34af9cc644f2183b3b80fd81744.tar.gz
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*