DORMANTno replies

[JGIT PATCH] make_jgit.sh: do not fail with untagged repository

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:46:59
Subsystem: the rest · Maintainer: Linus Torvalds

With a repository lacking tags, make_jgit.sh would produce an
invalid jgit.jar.  So use the fake tag "untagged" in that case.

Signed-off-by: Johannes Schindelin <redacted>
---
 make_jgit.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/make_jgit.sh b/make_jgit.sh
index 2969e6e..027a074 100755
--- a/make_jgit.sh
+++ b/make_jgit.sh
@@ -56,7 +56,7 @@ if [ -n "`git diff-index --name-only HEAD --`" ]
 then
 	VN="$VN-dirty"
 fi
-VN=`echo "$VN" | sed -e s/-/./g`
+VN=${VN:-untagged}`echo "$VN" | sed -e s/-/./g`
 
 CLASSPATH=
 for j in $JARS
-- 
1.6.3.284.g6fecc
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help