We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4135d34 commit 8375d73Copy full SHA for 8375d73
src/main/java/org/apache/hadoop/fs/glusterfs/Version.java
@@ -25,7 +25,11 @@ public Version() {
25
}
26
27
public String getTag(){
28
- return this.getProperty("git.commit.id.describe").split("-")[0];
+ String commit = this.getProperty("git.commit.id.describe");
29
+ String tag = commit != null ?
30
+ commit.split("-")[0]:
31
+ "no version info available. check log warnings.";
32
+ return commit.split("-")[0];
33
34
35
/**
0 commit comments