bzr git-import complains about "invalid object name"

Bug #994600 reported by Iztok Jeras
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
Jelmer Vernooij

Bug Description


I am not able to import the Verilator GIT repo in Launchpad (for a daily receipt). This is what I get if I try to import it on my machine. Another question is, if a fixed release would be created, when would it reach the PPA build servers for Precise?

Git version used to pack the files is and the Apache HTTP server is version 2.2.14, there seems to be nothing wrong with the GIT/HTTP server, so I assume the issue is in bzr-git.

Iztok Jeras

$ bzr git-import
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 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1131, 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 695, 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 118, 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'

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2012-05-04T13:46.crash
if a bug-reporting window does not automatically appear.

Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: New → Confirmed
importance: Undecided → Medium
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: Confirmed → Triaged
tags: added: code-import git
Revision history for this message
Nico Schlömer (nschloe) wrote :

The same error message can be reproduced by

$ bzr git-import

Nico Schlömer (nschloe)
summary: - bzr git-import complaints about "invalid object name"
+ bzr git-import complains about "invalid object name"
William Grant (wgrant)
no longer affects: launchpad
Jelmer Vernooij (jelmer)
Changed in brz-git:
status: New → Fix Released
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in brz-git:
milestone: none → integration
Jelmer Vernooij (jelmer)
affects: brz-git → brz
Changed in brz:
milestone: integration → none
milestone: none → 3.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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