Skip to content

Error messages from failed Git commands not being forwarded correctly #395

Closed
@rrei

Description

@rrei

GitPython version: 1.0.2
File: git/cmd.py
Line: 319
OS: Ubuntu 14.04LTS

The Git.AutoInterrupt.wait() method will fail reporting the correct error message from the underlying git command because, if the command exits with a non-zero status code, this method will attempt to read from the subprocess' stderr stream (which has already been closed at this point because of wait() I suppose). Therefore, GitCommandError is never raised because 'ValueError: I/O operation on closed file' is raised before.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions