hudson-plugins/git-plugin — pull request #39 by tschoening-ac (2012-02-22 12:51:50+00:00)
Title: Branch git 2.2.0

Hello,

during update of our company Hudson to the 2.2 branch we found a problem with manually starting a build for a project based on a git repo when no commits were made. It seems that the current version 2.2.0 of your plugin calls changeLogResult in GitSCM.checkout with a null-changelog which changeLogResult seem to handle as an error. changeLogResult returns false, which is directly delivered to Hudson which is aborting the manually started build. From my point of view it looks like you wanted to call changeLogResult to delete the current changeLogFile, else it wouldn't make sense to call the method at all with null, because it will always return false. This doesn't seem to be a practical behaviour because building manually without any committed changes to a repo should be possible. I therefore changed changeLogResult to the intended behaviour, else it would be neccessary to not call changeLogResult in checkout on no changes at all, but always return true in this case.

The second commit is just a rename of gerRevisionToBuild because this looks like a typo.