Skip to content

Commit 78ee383

Browse files
committed
Neccessary amend to pull #96 - still throws exceptions in some cases
1 parent 1ee6893 commit 78ee383

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/org/apache/hadoop/fs/glusterfs/Version.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@ public Version() {
2121
}
2222
catch(Throwable t){
2323
LOG.warn("Couldn't find GIT properties for version info " +
24-
t.getMessage()+". This jar may have been built OUTSIDE a GIT repo.");
24+
t +". This jar may have been built OUTSIDE a GIT repo.");
2525
}
2626
}
2727
public String getTag(){
2828
String commit = this.getProperty("git.commit.id.describe");
29-
String tag = commit != null ?
29+
final String tag = commit != null ?
3030
commit.split("-")[0]:
3131
"no version info available. check log warnings.";
32-
return commit.split("-")[0];
32+
33+
return tag;
3334
}
3435

3536
/**

0 commit comments

Comments
 (0)