summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-11 20:22:29 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-12-11 20:22:29 +0100
commit3443c20734152471b006682d8af407712f94febb (patch)
treea95307db11e369b27d53e9f2811be014a7680bba
parent076e4a05b2f743783b639e853eaa2a30a12457ab (diff)
downloadbzr-fastimport-3443c20734152471b006682d8af407712f94febb.tar.gz
Cope with non-ascii characters in tag names.
-rw-r--r--NEWS5
-rw-r--r--exporter.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6096a9c..aabaaba 100644
--- a/NEWS
+++ b/NEWS
@@ -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):