git-import: Invalid object name 'ref: refs/heads/master'

Bug #1087256 reported by Nico Schlömer
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The command

$ bzr git-import

yields the error

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

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

bzr 2.6b2 on python 2.7.3 (Linux-3.5.0-19-generic-x86_64-with-
arguments: ['/usr/bin/bzr', 'git-import',
plugins: bash_completion[2.6b2], builddeb[2.7.0dev], bzrtools[2.5.0],
    changelog_merge[2.6b2], git[0.6.9], launchpad[2.6b2],
    netrc_credential_store[2.6b2], news_merge[2.6b2], po_merge[2.6b2],
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
    including this traceback and a description of the problem.
====================== *snap* ======================

Nico Schlömer (nschloe)
Changed in bzr:
status: New → Invalid
status: Invalid → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.