]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
run-make-check.sh: git --ancestry-path is not backward compatible
authorLoic Dachary <ldachary@redhat.com>
Thu, 5 Feb 2015 13:37:38 +0000 (14:37 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 5 Feb 2015 13:37:38 +0000 (14:37 +0100)
The behavior is different on git 1.8 which is the default on centos7.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
run-make-check.sh

index df88f1a00872a76178e04a190a072c5f1014fb6e..4ff0783194e3779ffea1460c71c24c39f27ed9bd 100755 (executable)
@@ -17,7 +17,8 @@
 # make -j8 check possible
 #
 function can_parallel_make_check() {
-    test "$(git rev-list --max-count=1 --ancestry-path HEAD ^tags/v0.88)"
+    local commit=$(git rev-parse tags/v0.88^{})
+    git rev-list HEAD | grep --quiet $commit
 }
 
 function maybe_parallel_make_check() {