From 2186b257c74c4c93889ed69e6ff457ca830d3b88 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Wed, 4 Feb 2015 03:47:20 +0100 Subject: Use git hash instead of svn revision for version --- BKUApplet/pom.xml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'BKUApplet') diff --git a/BKUApplet/pom.xml b/BKUApplet/pom.xml index bb4a702a..30122d0c 100644 --- a/BKUApplet/pom.xml +++ b/BKUApplet/pom.xml @@ -211,8 +211,7 @@ buildnumber-git @@ -240,12 +239,9 @@ shell = "cmd" param = "/c" } - def gitSvnProc = [shell, param, "git svn info | grep Revision:"].execute() + def gitSvnProc = [shell, param, "git rev-parse --short HEAD"].execute() gitSvnProc.waitFor() - def svnref = "unknown" - def out = gitSvnProc.in.text.split(" ") - if (out.size() == 2) - svnref = out[1].trim() + def svnref = gitSvnProc.in.text.trim() project.properties['gitSvnRev'] = svnref -- cgit v1.2.3