git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 25, 2009, 15:40 UTC
Message-ID
<alpine.DEB.1.00.0906251740020.8908@intel-tinevez-2-302>

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@gmx.de>
---
 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
Message 1 of 1 in “make_jgit.sh: do not fail with untagged repository”
  1. make_jgit.sh: do not fail with untagged repositoryJohannes Schindelin, Jun 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.