]> Savannah Git Hosting - gnulib.git/commitdiff
git-version-gen: revert "detect untagged revisions"
authorMats Erik Andersson <mats.andersson@gisladisker.se>
Tue, 14 Apr 2015 20:25:59 +0000 (21:25 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 14 Apr 2015 20:33:27 +0000 (21:33 +0100)
Revert commit bedd7833 as it breaks `make dist` in Inetutils
at least, due to the interdependencies with top/GNUMakefile,
which depend on the tag prefixes.  This results in `make dist`
inducing a new call to autoconf where a simple tar-ball build
would be expected.

ChangeLog
build-aux/git-version-gen

index 79f8811fce1a9c5140800258f0c3965e9fa9568d..95d49ec19669dc6aebac871f738e57ebb1640ffd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,14 +4,6 @@
        * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
        (try_nocreate): Likewise.
 
-2015-04-14  Mats Erik Andersson  <gnu@gisladisker.se>
-
-       git-version-gen: detect untagged revisions
-       * build-aux/git-version-gen: If fallback string is empty,
-       but git is available, use "git describe --always" to extract
-       a revision, and prefix it with "g".  This is much better than
-       responding "UNKNOWN" and it applies to shallow clones!
-
 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
 
        fseeko: fix build failure on NetBSD >= 6 (trivial)
index ddc006176648478bf944e53363744b31c8316929..8e92c0ad8e3db950ef1cc1a3a19fee68cdddb77f 100755 (executable)
@@ -189,16 +189,12 @@ then
     v=`echo "$v" | sed 's/-/./;s/\(.*\)-g/\1-/'`;
     v_from_git=1
 elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
-    if v=g`git describe --always HEAD 2>/dev/null`; then
-       v_from_git=1
-    else
-       v=UNKNOWN
-    fi
+    v=UNKNOWN
 else
     v=$fallback
 fi
 
-v=`echo "$v" | sed "s/^$prefix//"`
+v=`echo "$v" |sed "s/^$prefix//"`
 
 # Test whether to append the "-dirty" suffix only if the version
 # string we're using came from git.  I.e., skip the test if it's "UNKNOWN"