Skip to content

get_transport_and_path invalid arguments

Mainline Dulwich code:

def get_transport_and_path(
    location: str,
    config: Optional[Config] = None,
    operation: Optional[str] = None,
    thin_packs: bool = True,
    report_activity: Optional[Callable[[int, str], None]] = None,
    quiet: bool = False,
    include_tags: bool = False,
    username: Optional[str] = None,
    password: Optional[str] = None,
    key_filename: Optional[str] = None,
    ssh_command: Optional[str] = None,
) -> tuple[GitClient, str]:

Call:

    return get_transport_and_path(
        url, **credentials, pool_manager=pool_manager
    )

Error:

TypeError: get_transport_and_path() got an unexpected keyword argument 'pool_manager'

This is an issue in the dulwich==0.24.3 release downgrading to dulwich==0.24.2 fixes the problem.

Edited by Lawrence Hunter