Comment 2 for bug 613502

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

I'm getting this crash when I try to do a git-import on a new repository.

I'm trying to run a git-import from a gitorious branch. When I try to pull off of HTTP, I get the message

> bzr git-import http://git.gitorious.org/bibletime/bibletime.git
bzr: ERROR: Not a branch: "http://git.gitorious.org/bibletime/bibletime.git/".

When pulling over the git protocol, I get the following crash

> bzr git-import git://gitorious.org/bibletime/bibletime.git
bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: exceptions.AttributeError: 'InterRemoteGitNonGitRepository' object has no attribute 'fetch_refs'

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 "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/commands.py", line 83, in run
    refs = interrepo.fetch_refs()
AttributeError: 'InterRemoteGitNonGitRepository' object has no attribute 'fetch_refs'

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']
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.2]
  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.