]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Don't use the git format if the 'git' program if older than version 1.6.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Jun 2010 13:06:14 +0000 (15:06 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Jun 2010 13:06:14 +0000 (15:06 +0200)
gettext-tools/ChangeLog
gettext-tools/configure.ac

index f28925a24e79f4ef8c94dec1bd92ecc8eb9cbaac..4c6e4d2ed3e403c0abefa8665e64569196231a31 100644 (file)
@@ -1,3 +1,10 @@
+2010-06-06  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac (ARCHIVE_FORMAT): If neither --with-git nor --with-cvs
+       is specified, don't use the git format if the 'git' program if older
+       than version 1.6.
+       Suggested by Karl Berry <karl@freefriends.org>.
+
 2010-06-04  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.18.1 released.
index be6af1059a9c7da0910a4f2f7a9917d7b139ec35..4404438ff089f602bea8d90e3e4216813d100f63 100644 (file)
@@ -338,9 +338,15 @@ else
     ARCHIVE_FORMAT=cvs
   else
     # Neither --with-git nor --with-cvs is specified.
-    if test "$gt_use_git" != no && (git --version) >/dev/null 2>&1; then
-      # --without-git is not specified, and the git program exists.
-      # Use git format.
+    if test "$gt_use_git" != no \
+       && (git --version) >/dev/null 2>&1 \
+       && { case `git --version | sed -e 's/^[^0-9]*//'` in
+              0.* | 1.[0-5].*) false ;;
+              *) true ;;
+            esac
+          }; then
+      # --without-git is not specified, and the git program exists
+      # in version 1.6 or newer. Use git format.
       ARCHIVE_FORMAT=git
     else
       # --without-git is specified, or the git program is missing.