private boolean areNewPatchFilesAvailable() throws IOException {
  String remoteHead=gitWrapper.getRemoteHead(binaryPatchRepoDirectory);
  String localHead=gitWrapper.getLocalHead(binaryPatchRepoDirectory);
  boolean needsPatching=!localHead.equals(remoteHead);
  if (needsPatching) {
    logger.info("New patch files are available ({})",remoteHead);
  }
 else {
    logger.info("Local patch repository is up to date ({})",remoteHead);
  }
  return needsPatching;
}

private boolean areNewPatchFilesAvailable ( ) throws IOException { String remoteHead = gitWrapper . getRemoteHead ( binaryPatchRepoDirectory ) ; String localHead = gitWrapper . getLocalHead ( binaryPatchRepoDirectory ) ; boolean needsPatching = ! localHead . equals ( remoteHead ) ; if ( needsPatching ) { logger . info ( "New patch files are available ({})" , remoteHead ) ; } else { logger . info ( "Local patch repository is up to date ({})" , remoteHead ) ; } return needsPatching ; }
checks whether the remote git repository has newer patch files available then the local repsitory .
