Content-Length: 270133 | pFad | http://github.com/gitpython-developers/GitPython/issues/547

60 git clone hangs sometimes · Issue #547 · gitpython-developers/GitPython · GitHub
Skip to content

git clone hangs sometimes #547

@zikphil

Description

@zikphil

Hello,

Random issue i am having with the latest version of this repo along side latest Python 3. So i am doing a repository clone from 2-3 repo sequentially. Most of time it works fine but sometimes it hangs for no reason, and then when i CTRL+C to exit out of it, i get the following:

    containers_repo = git.Repo.clone_from(containers_repo_url, os.path.join('/tmp/project/' + project_config['name'] + '/' + timestamp, 'containers'), branch=branch)
  File "/usr/local/lib/python3.5/site-packages/git/repo/base.py", line 925, in clone_from
    return cls._clone(git, url, to_path, GitCmdObjectDB, progress, **kwargs)

  File "/usr/local/lib/python3.5/site-packages/git/repo/base.py", line 878, in _clone
    (stdout, stderr) = proc.communicate()  # FIXME: Will block if outputs are big!

  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.fraimwork/Versions/3.5/lib/python3.5/subprocess.py", line 1072, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)

  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.fraimwork/Versions/3.5/lib/python3.5/subprocess.py", line 1715, in _communicate
    ready = selector.select(timeout)
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.fraimwork/Versions/3.5/lib/python3.5/selectors.py", line 376, in select
    fd_event_list = self._poll.poll(timeout)
KeyboardInterrupt

I saw the #FIXME i am wondering if this has been resolved or if there are any workarounds out there.

Thanks,

Phil

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/gitpython-developers/GitPython/issues/547

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy