Skip to content

Commit

Permalink
Merge branch 'svn-escape-backslash' of git://bogomips.org/git-svn
Browse files Browse the repository at this point in the history
* 'svn-escape-backslash' of git://bogomips.org/git-svn:
  git-svn: escape backslashes in refnames
  • Loading branch information
gitster committed Feb 21, 2017
2 parents 2076907 + 22af6fe commit 80ba04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/Git/SVN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down

0 comments on commit 80ba04e

Please sign in to comment.