{"thread":{"id":"19929","subject":"[JGIT PATCH] make_jgit.sh: do not fail with untagged repository","startedAt":"2009-06-25T15:40:34Z","lastAt":"2009-06-25T15:40:34Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"116937","messageId":"alpine.DEB.1.00.0906251740020.8908@intel-tinevez-2-302","threadId":"19929","inReplyTo":null,"subject":"[JGIT PATCH] make_jgit.sh: do not fail with untagged repository","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-06-25T15:40:34Z","receivedAt":"2009-06-25T15:40:34Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nWith a repository lacking tags, make_jgit.sh would produce an\ninvalid jgit.jar.  So use the fake tag \"untagged\" in that case.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n make_jgit.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/make_jgit.sh b/make_jgit.sh\nindex 2969e6e..027a074 100755\n--- a/make_jgit.sh\n+++ b/make_jgit.sh\n@@ -56,7 +56,7 @@ if [ -n \"`git diff-index --name-only HEAD --`\" ]\n then\n \tVN=\"$VN-dirty\"\n fi\n-VN=`echo \"$VN\" | sed -e s/-/./g`\n+VN=${VN:-untagged}`echo \"$VN\" | sed -e s/-/./g`\n \n CLASSPATH=\n for j in $JARS\n-- \n1.6.3.284.g6fecc\n"}]}