Skip to content

Commit

Permalink
Import escaping fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Apr 3, 2021
1 parent cbb15e5 commit c255b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions breezy/git/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,10 @@ def __init__(self, controldir, repository, ref, format):
except ValueError:
self.name = None
if self.ref is not None:
params = {"ref": urlutils.escape(self.ref)}
params = {"ref": urlutils.escape(self.ref, safe='')}
else:
if self.name != "":
params = {"branch": urlutils.escape(self.name)}
params = {"branch": urlutils.escape(self.name, safe='')}
for k, v in params.items():
self._user_transport.set_segment_parameter(k, v)
self._control_transport.set_segment_parameter(k, v)
Expand Down

0 comments on commit c255b45

Please sign in to comment.