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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <johannes.schindelin@xxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]