git-import fails on remote repository with AttributeError: 'RemoteGitRepository' object has no attribute '_git'

Bug #706990 reported by Raoul Snyman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
Critical
Jelmer Vernooij

Bug Description

raoul@animal:~/Projects/BibleTime$ bzr git-import git://gitorious.org/bibletime/bibletime.git
bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: exceptions.AttributeError: 'RemoteGitRepository' object has no attribute '_git'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/raoul/.bazaar/plugins/git/commands.py", line 116, in run
    name, None, tags)
  File "/home/raoul/.bazaar/plugins/git/branch.py", line 267, in __init__
    self.tags = DictTagDict(self, tagsdict)
  File "/home/raoul/.bazaar/plugins/git/branch.py", line 215, in __init__
    super(DictTagDict, self).__init__(branch)
  File "/home/raoul/.bazaar/plugins/git/branch.py", line 166, in __init__
    self.refs = self.repository._git.refs
AttributeError: 'RemoteGitRepository' object has no attribute '_git'

bzr 2.2.1 on python 2.6.6 (Linux-2.6.35-25-generic-x86_64-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'git-import', 'git://gitorious.org/bibletime/bibletime.git']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.UTF-8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.1]
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [2.2.0]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  cia /usr/lib/python2.6/dist-packages/bzrlib/plugins/cia [1.0.0dev]
  explorer /usr/lib/python2.6/dist-packages/bzrlib/plugins/explorer [1.1.0]
  git /home/raoul/.bazaar/plugins/git [0.5.4dev]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.1]
  qbzr /usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr [0.19.1]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.3]
  webdav /home/raoul/.bazaar/plugins/webdav [1.12.1]

*** 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.

Related branches

Revision history for this message
Greg Hellings (greg-hellings) wrote :

I get the same crash with bzr 2.2.3 in Maverick, having just upgraded to bzr-git 0.5.3.

bzr 2.2.3 on python 2.6.6 (Linux-2.6.35-24-generic-x86_64-with-Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'git-import', 'git://gitorious.org/bibletime/bibletime.git', 'bibletime-bzr']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.3]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.2.0]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.5.3]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.3]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.3]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.3]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.4]

*** 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.

Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 0.6.0
Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: Triaged → Fix Committed
Revision history for this message
Greg Hellings (greg-hellings) wrote :

I have tested this and it works for me now over git: and git+ssh:

Thanks for getting the fix in!

Jelmer Vernooij (jelmer)
Changed in bzr-git:
milestone: 0.6.0 → 0.5.4
Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: Fix Committed → Fix Released
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.