File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/shared/java/org/truffleruby/shared Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,21 @@ public static String getEngineVersion() {
49
49
// The property cannot be read in a static initializer, it's set later
50
50
final String systemVersion = System .getProperty ("org.graalvm.version" );
51
51
52
+ final String revisionString ;
53
+ if (BuildInformationImpl .INSTANCE .isDirty ()) {
54
+ revisionString = BuildInformationImpl .INSTANCE .getShortRevision () + "*" ;
55
+ } else {
56
+ revisionString = BuildInformationImpl .INSTANCE .getShortRevision ();
57
+ }
58
+
52
59
// No version information, or just "dev" - use 0.0-commit
53
60
if (systemVersion == null || systemVersion .equals ("dev" )) {
54
- return "0.0-" + BuildInformationImpl . INSTANCE . getShortRevision () ;
61
+ return "0.0-" + revisionString ;
55
62
}
56
63
57
64
// A "-dev" version number - append the commit as well
58
65
if (systemVersion .endsWith ("-dev" )) {
59
- return systemVersion + "-" + BuildInformationImpl . INSTANCE . getShortRevision () ;
66
+ return systemVersion + "-" + revisionString ;
60
67
}
61
68
62
69
return systemVersion ;
You can’t perform that action at this time.
0 commit comments