Unknown git commit or version = unknown version sig
This commit is contained in:
parent
0b7789035f
commit
a9b2660aa8
@ -25,6 +25,11 @@ public class ModuleVersion
|
|||||||
String buildNumber = version.substring( lastColon + 1, version.length() );
|
String buildNumber = version.substring( lastColon + 1, version.length() );
|
||||||
String gitCommit = version.substring( secondLastColon + 1, lastColon ).replaceAll( "\"", "" );
|
String gitCommit = version.substring( secondLastColon + 1, lastColon ).replaceAll( "\"", "" );
|
||||||
|
|
||||||
|
if ( "unknown".equals( buildNumber ) || "unknown".equals( gitCommit ) )
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return new ModuleVersion( buildNumber, gitCommit );
|
return new ModuleVersion( buildNumber, gitCommit );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user