Skip to content

fetch() hangs with authenticated git repo and credential helper enabled-but-not-yet-started #295

Description

@kartiksubbarao

I'm running GitPython 0.3.2 RC1 with Python 2.7.6 on Ubuntu 14.04. My ~/.gitconfig has these lines:

[credential]
    helper = cache --timeout=3600

I've narrowed the problem down to this script:

#! /usr/bin/python

import git

repo = git.Repo.init("/tmp/repo1")
origin = repo.create_remote('origin', 'https://repohost.example.com/some/repo')
origin.fetch()

After I'm prompted for my username and password, the script hangs. If I remove my ~/.gitconfig, the script doesn't hang. Also, if the git-credential-cache--daemon process already happens to be running successfully, the script doesn't hang.

The broader context of this is that I'm running Salt with the GitPython backend and getting hangs if the credential helper daemon isn't already running.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions