GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — git clone hangs sometimes · Issue #547 · gitpython-developers/GitPython

git clone hangs sometimes #547

New issue
Copy link
New issue
Copy link
Closed
Closed
git clone hangs sometimes#547
Copy link
Labels
tag.deadlockswaiting for feedback

Description

@zikphil
zikphil
opened on Oct 27, 2016
Issue body actions

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.framework/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.framework/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.framework/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

Activity

  1. ankostis
    added
    tag.deadlocks
    on Oct 27, 2016
  2. ankostis commented on Oct 31, 2016

    @ankostis
    ankostis
    on Oct 31, 2016
    Contributor
    More actions

    @philippelabat thanks for reporting it.

    Normally communicate() should not hang, it just may consume much memory for big files; the comment you see was mine, and it does not hold, I have to remove it.

    • Can you specify the exact commit you tested?
    • Does this happens with earlier versions?
  3. Byron
    added
    waiting for feedback
    on Dec 8, 2016
  4. Byron
    added a commit that references this issue on Dec 8, 2016

    chore(repo): remove comment

    0691441
  5. Byron commented on Mar 8, 2017

    @Byron
    Byron
    on Mar 8, 2017
    Member
    More actions

    I am closing this issue as it had no interaction for more than 3 months. Please feel free to comment in case you need it to be reopened.

  6. Byron
    closed this as completedon Mar 8, 2017
  7. Abbyyan commented on Dec 19, 2019

    @Abbyyan
    Abbyyan
    on Dec 19, 2019
    More actions

    I've meet the same problem now and it really bother me for a long time. Here are the details. #969

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    tag.deadlockswaiting for feedback

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.