jenkinsci/git-plugin — pull request #252 by or-shahcar (2014-08-29 09:41:59+00:00)
Title: When polling - show retrieved HEAD sha1 revision

Git poll log shows the last build revision, checks the remote HEAD but does not print what the revision it retrieved from remote. It only prints "changes found" or "no changes found".

In order to verify the polling mechanism worked correctly, I think we should add print to the remote HEAD sha1 code so we can see that the conclusion to build or not to build is correct.

Added null check for avoiding NPE.