Import from Git: url=... has not implemented list_dir

Asked by Nico Schlömer on 2012-12-01

Hi,

I'm trying to import an external project from a Git repository to enable daily builds, but get the error message

============== *snip* ==============
[...]
x86_64.egg/bzrlib/transport/__init__.py", line 1245, in list_dir
    % (self))
bzrlib.errors.TransportNotPossible: Transport operation not possible: Transport <bzrlib.transport.http._urllib.HttpTransport_urllib url=https://software.sandia.gov/trilinos/repositories/publicTrilinos%2Cref%3Drefs/heads/master/objects/pack/> has not implemented list_dir (but must claim to be listable to trigger this error).
Import failed:
Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.
============== *snap* ==============

I've got no idea what this wants to say. An ordinary `git clone` works without problems on the repo.
Any hints?

Question information

Language:
English Edit question
Status:
Expired
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
2012-12-01
Last reply:
2012-12-22
John A Meinel (jameinel) said : #1

Are you trying to set up a regular import in Launchpad? Or are you trying to do the import yourself? Offhand the failure is that bzr is trying to list the contents of the pack/ directory.
IIRC, git doesn't usually expose the http listing, which means you are supposed to use a git command to make your repository available over plain http(s).

Looking at the URL, though, I would expect it to be trying to do that at:
https://software.sandia.gov/trilinos/repositories/publicTrilinos/objects/pack/

I'm guessing you are specifying the branch to import incorrectly. I would think that you would import: https://software.sandia.gov/trilinos/repositories/publicTrilinos/ and maybe you are supplying https://software.sandia.gov/trilinos/repositories/publicTrilinos,ref=refs/heads/master

IIRC the way to import a specific branch is to do: https://software.sandia.gov/trilinos/repositories/publicTrilinos,branch=master

Not ref=...

If you can give more context of the traceback, or where this is failing, it would be appreciated.

Nico Schlömer (nschloe) said : #2

This is through launchpad.net's own import system, https://code.launchpad.net/~nschloe/trilinos/master.
The exact import line is never specified in the web interface, so I think I don't have control over whether bzr import uses

https://software.sandia.gov/trilinos/repositories/publicTrilinos/objects/pack/
or
https://software.sandia.gov/trilinos/repositories/publicTrilinos,ref=refs/heads/master

I agree that the former is probably what bzr is looking for. I don't know what the latter is used.

Interestingly, a plain

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

throws the different error

[...]
AssertionError: Invalid object name 'ref: refs/heads/master'

A bug report for this is filed under https://bugs.launchpad.net/bzr/+bug/1087256.

Launchpad Janitor (janitor) said : #3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.