]> Savannah Git Hosting - gnulib.git/commitdiff
maintainer-makefile: Silence announce-gen error with GNULIB_REVISION.
authorSimon Josefsson <simon@josefsson.org>
Sun, 12 May 2024 15:07:30 +0000 (17:07 +0200)
committerSimon Josefsson <simon@josefsson.org>
Sun, 12 May 2024 15:09:07 +0000 (17:09 +0200)
* top/maint.mk (gnulib-version): Silence git describe on failure.

ChangeLog
top/maint.mk

index 2e2311e7b2c7421a71a2913e4975dc657b7c5d5a..b6aa21d7f7fc3d82864b32269ad4eb2e42677fbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-12  Simon Josefsson  <simon@josefsson.org>
+
+       maintainer-makefile: Silence announce-gen error with GNULIB_REVISION.
+       * top/maint.mk (gnulib-version): Silence git describe on failure.
+
 2024-05-12  Bruno Haible  <bruno@clisp.org>
 
        execinfo: Document known bugs.
index 32228f4366b143f394e0d24317e16c4bec8ee786..ecd8971900f3d76b6d67fea57665e8d290bb5d42 100644 (file)
@@ -1502,7 +1502,7 @@ vc-diff-check:
 rel-files = $(DIST_ARCHIVES)
 
 gnulib-version = $$(cd $(gnulib_dir)                           \
-                    && { git describe || git rev-parse --short=10 HEAD; } )
+                    && { git describe 2> /dev/null || git rev-parse --short=10 HEAD; } )
 bootstrap-tools ?= autoconf,automake,gnulib
 
 gpgv = $$(gpgv2 --version >/dev/null && echo gpgv2 || echo gpgv)