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
This commit is contained in:
commit
80ba04ed9b
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user