diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-11 20:22:29 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-12-11 20:22:29 +0100 |
commit | 3443c20734152471b006682d8af407712f94febb (patch) | |
tree | a95307db11e369b27d53e9f2811be014a7680bba | |
parent | 076e4a05b2f743783b639e853eaa2a30a12457ab (diff) | |
download | bzr-fastimport-3443c20734152471b006682d8af407712f94febb.tar.gz |
Cope with non-ascii characters in tag names.
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | exporter.py | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -13,6 +13,11 @@ Changes separate upstream project called python-fastimport, that it now depends on. python-fastimport can be retrieved from http://launchpad.net/python-fastimport. +Bug fixes +--------- + +* Cope with non-ascii characters in tag names. (Jelmer Vernooij, #598060) + 0.9 28-Feb-2010 =============== diff --git a/exporter.py b/exporter.py index 9aa3b54..d122442 100644 --- a/exporter.py +++ b/exporter.py @@ -505,7 +505,7 @@ class BzrFastExporter(object): self.warning('not creating tag %r pointing to non-existent ' 'revision %s' % (tag, revid)) else: - git_ref = 'refs/tags/%s' % tag + git_ref = 'refs/tags/%s' % tag.encode("utf-8") self.print_cmd(commands.ResetCommand(git_ref, ":" + str(mark))) def _next_tmp_branch_name(self): |