protected static List<String> isValidGitVersion(final String gitResponse){
  Trace.writeLine("Program::isValidGitVersion");
  Trace.writeLine("  gitResponse:" + gitResponse);
  final String GitNotFound="Git is a requirement for installation and cannot be found. Please check that Git is installed and is added to your PATH";
  final List<String> result=new ArrayList<String>();
  if (gitResponse != null) {
    Version version=null;
    try {
      version=Version.parseVersion(gitResponse);
    }
 catch (    final IllegalArgumentException ignored) {
      Trace.writeLine("  " + ignored.getMessage());
      result.add(GitNotFound);
    }
    if (version != null) {
      if (version.getMajor() < 1 || (version.getMajor() == 1 && version.getMinor() < 9)) {
        result.add("Git version " + version.getMajor() + "."+ version.getMinor()+ " was found but version 1.9 or above is required.");
      }
    }
  }
 else {
    result.add(GitNotFound);
  }
  return result;
}

protected static List < String > isValidGitVersion ( final String gitResponse ) { Trace . writeLine ( "Program::isValidGitVersion" ) ; Trace . writeLine ( "  gitResponse:" + gitResponse ) ; final String GitNotFound = "Git is a requirement for installation and cannot be found. Please check that Git is installed and is added to your PATH" ; final List < String > result = new ArrayList < String > ( ) ; if ( gitResponse != null ) { Version version = null ; try { version = Version . parseVersion ( gitResponse ) ; } catch ( final IllegalArgumentException ignored ) { Trace . writeLine ( "  " + ignored . getMessage ( ) ) ; result . add ( GitNotFound ) ; } if ( version != null ) { if ( version . getMajor ( ) < 1 || ( version . getMajor ( ) == 1 && version . getMinor ( ) < 9 ) ) { result . add ( "Git version " + version . getMajor ( ) + "." + version . getMinor ( ) + " was found but version 1.9 or above is required." ) ; } } } else { result . add ( GitNotFound ) ; } return result ; }
parses git version response for major and minor version and checks if it ' s 1 . 9 or above
