diff --git a/breezy/git/branch.py b/breezy/git/branch.py index 46e2932909..1c52598242 100644 --- a/breezy/git/branch.py +++ b/breezy/git/branch.py @@ -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)