Add git commit and branch name to log statements

This simple change could have saved me at least an hour trying to debug why a particular continuous build had failed - one of the dependent projects was pulling from the incorrect branch, and that took a while to track down.

Of course, add shellescape stuff to these new lines too if you accept the shellescape pull request.