phingofficial/phing — pull request #182 by Sthing (2013-01-08 07:03:42+00:00)
Title: Git tasks - pass real error message

I was using the task gitcheckout yesterday, and the task failed with no other message than "Task execution failed". Looking at the source in phing/tasks/ext/git/GitCheckoutTask.php I see that all execution errors are handled by
throw new BuildException('Task execution failed.');
I have changed it to
throw new BuildException('Task execution failed.', $e);

Same treatment applied to all the git tasks.

Thanks to MichaelPhing @ IRC for quick replies.