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 1ee6893 commit 78ee383Copy full SHA for 78ee383
src/main/java/org/apache/hadoop/fs/glusterfs/Version.java
@@ -21,15 +21,16 @@ public Version() {
21
}
22
catch(Throwable t){
23
LOG.warn("Couldn't find GIT properties for version info " +
24
- t.getMessage()+". This jar may have been built OUTSIDE a GIT repo.");
+ t +". This jar may have been built OUTSIDE a GIT repo.");
25
26
27
public String getTag(){
28
String commit = this.getProperty("git.commit.id.describe");
29
- String tag = commit != null ?
+ final String tag = commit != null ?
30
commit.split("-")[0]:
31
"no version info available. check log warnings.";
32
- return commit.split("-")[0];
+
33
+ return tag;
34
35
36
/**
0 commit comments