AttributeError: 'InterRemoteGitNonGitRepository' object has no attribute 'fetch_refs' - regression in r940

Bug #613502 reported by Max Bowsher
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Fix Released
High
Jelmer Vernooij

Bug Description

r940 has caused a regression in running "bzr git-import" to update a previously imported bzr repository and branches.

  File "/home/maxb/.bazaar/plugins/git/commands.py", line 83, in run
    refs = interrepo.fetch_refs()
AttributeError: 'InterRemoteGitNonGitRepository' object has no attribute 'fetch_refs'

Related branches

Jelmer Vernooij (jelmer)
Changed in bzr-git:
status: New → Fix Released
assignee: nobody → Jelmer Vernooij (jelmer)
importance: Undecided → High
milestone: none → 0.5.2
Revision history for this message
Glen Mailer (glenjamin) wrote :

I'm still seeing this in 0.5.2. Is the milestone on this fix incorrect?

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.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 613502] Re: AttributeError: 'InterRemoteGitNonGitRepository' object has no attribute 'fetch_refs' - regression in r940

On Sat, 2011-01-22 at 19:08 +0000, 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'
This has already been fixed earlier. 0.5.3 has a fix, among other
things. Please note though that bzr-git doesn't support the git smart
server protocol over http yet, so fetching over http:// instead of over
git:// (which gitorious also supports) will be quite slow.

  status fixreleased

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.