Comment 1 for bug 1056616

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This fails with a different error when using bzr-git trunk.

bzr: ERROR: exceptions.AssertionError: Invalid object name 'ref: refs/heads/master'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/git/commands.py", line 122, in run
    refs = interrepo.fetch()
  File "/home/jelmer/.bazaar/plugins/git/fetch.py", line 657, in fetch
    mapping)
  File "/home/jelmer/.bazaar/plugins/git/fetch.py", line 746, in fetch_objects
    wants = determine_wants(remote_refs)
  File "/home/jelmer/.bazaar/plugins/git/fetch.py", line 599, in determine_wants_all
    return list(potential - self._target_has_shas(potential))
  File "/home/jelmer/.bazaar/plugins/git/fetch.py", line 584, in _target_has_shas
    revid = self.source.lookup_foreign_revision_id(sha)
  File "/home/jelmer/.bazaar/plugins/git/repository.py", line 430, in lookup_foreign_revision_id
    commit = self._git.object_store.peel_sha(foreign_revid)
  File "/usr/lib/python2.7/dist-packages/dulwich/object_store.py", line 216, in peel_sha
    obj = self[sha]
  File "/usr/lib/python2.7/dist-packages/dulwich/object_store.py", line 112, in __getitem__
    type_num, uncomp = self.get_raw(sha)
  File "/usr/lib/python2.7/dist-packages/dulwich/object_store.py", line 306, in get_raw
    raise AssertionError("Invalid object name %r" % name)
AssertionError: Invalid object name 'ref: refs/heads/master'