[Pkg-bazaar-maint] Bug#656963: git clone bzr::<anything> dies with "ValueError: unable to map ref refs/heads back to tag name"
Jonathan Nieder
jrnieder at gmail.com
Mon Jan 23 08:56:58 UTC 2012
Package: bzr-git
Version: 0.6.6-1
Severity: important
Tags: upstream fixed-upstream
Trying to clone anything, after all the fetching is done, I get
Traceback (most recent call last):
File "/usr/lib/git-core/git-remote-bzr", line 220, in <module>
commands[argv[0]](argv, shortname, remote_dir)
File "/usr/lib/git-core/git-remote-bzr", line 89, in cmd_list
for ref, git_sha1 in refs.as_dict().iteritems():
File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 202, in as_dict
ret[key] = self[("%s/%s" % (base, key)).strip("/")]
File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 273, in __getitem__
_, sha = self._follow(name)
File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 255, in _follow
contents = self.read_ref(refname)
File "/usr/lib/python2.7/dist-packages/dulwich/repo.py", line 231, in read_ref
contents = self.read_loose_ref(refname)
File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/refs.py", line 129, in read_loose_ref
tag_name = ref_to_tag_name(ref)
File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/refs.py", line 89, in ref_to_tag_name
raise ValueError("unable to map ref %s back to tag name" % ref)
ValueError: unable to map ref refs/heads back to tag name
$ echo $?
128
and the repo is gone. Version 0.6.6+bzr1560 works, though (phew).
$ dpkg-query -W bzr python-dulwich python-tdb git
bzr 2.5.0~beta5-2
git 1:1.7.9~rc2-1
python-dulwich 0.8.3-1~jrn
python-tdb 1.2.9-4+b1
More information about the Pkg-bazaar-maint
mailing list