jenkinsci/git-plugin — pull request #62 by marc-guenther (2012-04-05 14:13:44+00:00)
Title: [JENKINS-13356] ignore stderr when launching external git command

This patches GitAPI.launchCommand() to ignore stderr and only return the stdout to the caller. If the command fails, stderr is appended in the exception message, otherwise it's discarded.

Rationale: The output of stderr is not reliably defined by the git commands and therefore might not be parsable by the caller. In the case of JENKINS-13356 it contained some unexpected and unhandled warning about a missing locale.

Backward compatibility: Any commands that rely on the contents of stderr would be broken by this patch. I hereby assume that such commands to not exist.