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

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

Bug Description

The command

$ bzr git-import https://software.sandia.gov/trilinos/repositories/publicTrilinos

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/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 1141, 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 "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/commands.py", line 122, in run
    refs = interrepo.fetch()
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/fetch.py", line 657, in fetch
    mapping)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/fetch.py", line 746, in fetch_objects
    wants = determine_wants(remote_refs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/fetch.py", line 599, in determine_wants_all
    return list(potential - self._target_has_shas(potential))
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/fetch.py", line 584, in _target_has_shas
    revid = self.source.lookup_foreign_revision_id(sha)
  File "/usr/lib/python2.7/dist-packages/bzrlib/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'

bzr 2.6b2 on python 2.7.3 (Linux-3.5.0-19-generic-x86_64-with-
    Ubuntu-12.10-quantal)
arguments: ['/usr/bin/bzr', 'git-import',
    'https://software.sandia.gov/trilinos/repositories/publicTrilinos']
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],
    weave_fmt[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
        https://bugs.launchpad.net/bzr/+filebug
    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.