Fix mild output format changes in git.

Travis is now using git version 1.8.* to run the tests and there is a slight
difference in output formatting of the git commands. This is causing mis-leading
test failures.