Closed
Description
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.