Commit 693c9b73 authored by halatmit's avatar halatmit

include case where the version is empty

parent 107d2174
...@@ -18,12 +18,12 @@ public final class GitBuildId { ...@@ -18,12 +18,12 @@ public final class GitBuildId {
public static String getVersion() { public static String getVersion() {
String version = GIT_BUILD_VERSION; String version = GIT_BUILD_VERSION;
// This catches the error returned by git describe // This catches the emptry string or the error returned by git describe
// in the case where there is no description. In general // in the case where there is no description. In general
// the version needs to be a string that can be // the version needs to be a string that can be
// embedded into a legal file name. If it can't, then the // embedded into a legal file name. If it can't, then the
// blocks editor won't load. // blocks editor won't load.
if (version.contains(" ")) { if ((version == "") || version.contains(" ")) {
return "none" ; return "none" ;
} else { } else {
return version; return version;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment