Skip to content

Clone and pull hangs on stderr #1498

@noisythoughts

Description

@noisythoughts

GitPython 3.1.27 hangs on pull and clone (e.g. Repo.clone_from(URL, repo_path) or with git_repo.git.pull('origin', 'master')).

The strace for the output for pull is as follows:

clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f449bc55a10) = 1501
close(10)                               = 0
close(4)                                = 0
close(8)                                = 0
close(6)                                = 0
read(9, "", 50000)                      = 0
close(9)                                = 0
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}], 2, -1) = 1 ([{fd=7, revents=POLLIN}])
read(7, "From ssh://stash.git.company.com"..., 32768) = 110
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}], 2, -1) = 1 ([{fd=5, revents=POLLIN}])
read(5, "Already up to date.\n", 32768) = 20
poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}], 2, -1) = 1 ([{fd=5, revents=POLLHUP}])
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1501, si_uid=1000, si_status=0, si_utime=9, si_stime=24} ---
read(5, "", 32768)                      = 0
close(5)                                = 0
poll([{fd=7, events=POLLIN}], 1, -1^C)    = 1 ([{fd=7, revents=POLLHUP}])

Everything works as expected on GitPython 3.1.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions