Unknown git commit or version = unknown version sig

This commit is contained in:
md_5 2014-02-12 19:15:00 +11:00
parent 0b7789035f
commit a9b2660aa8

View File

@ -25,6 +25,11 @@ public class ModuleVersion
String buildNumber = version.substring( lastColon + 1, version.length() );
String gitCommit = version.substring( secondLastColon + 1, lastColon ).replaceAll( "\"", "" );
if ( "unknown".equals( buildNumber ) || "unknown".equals( gitCommit ) )
{
return null;
}
return new ModuleVersion( buildNumber, gitCommit );
}
}