maint: fix public-submodule-commit to work with newer git
authorJim Meyering <meyering@fb.com>
Thu, 2 Jan 2014 04:25:44 +0000 (20:25 -0800)
committerIan Beckwith <ianb@erislabs.net>
Sun, 2 Feb 2014 23:59:10 +0000 (23:59 +0000)
* top/maint.mk (public-submodule-commit): Remove excess quoting.
We were over-quoting the test arguments, and somewhere prior to
version 1.8.5.2.229, git stopped removing those excess quotes,
which made the test fail, since the unexpanded strings would
always differ; using GIT_TRACE=1 confirmed that the git merge-base
command wasn't even being run.
(cherry picked from commit 7a0c729aacc3716a665ce3b0c8cb34843bdecc75)

ChangeLog
top/maint.mk

index 4335802..c3f5dc1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-01-01  Jim Meyering  <meyering@fb.com>
+
+       maint: fix public-submodule-commit to work with newer git
+       * top/maint.mk (public-submodule-commit): Remove excess quoting.
+       We were over-quoting the test arguments, and somewhere prior to
+       version 1.8.5.2.229, git stopped removing those excess quotes,
+       which made the test fail, since the unexpanded strings would
+       always differ; using GIT_TRACE=1 confirmed that the git merge-base
+       command wasn't even being run.
+
 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
 
        doc: update main copyright year
index 7420af5..cae2dda 100644 (file)
@@ -1395,8 +1395,8 @@ public-submodule-commit:
                && git --version >/dev/null 2>&1; then                  \
          cd $(srcdir) &&                                               \
          git submodule --quiet foreach                                 \
-             test '"$$(git rev-parse "$$sha1")"'                       \
-             = '"$$(git merge-base origin "$$sha1")"'                  \
+             'test "$$(git rev-parse "$$sha1")"                        \
+                 = "$$(git merge-base origin "$$sha1")"'               \
            || { echo '$(ME): found non-public submodule commit' >&2;   \
                 exit 1; };                                             \
        else                                                            \