From: Loic Dachary Date: Thu, 5 Feb 2015 13:37:38 +0000 (+0100) Subject: run-make-check.sh: git --ancestry-path is not backward compatible X-Git-Tag: v0.93~92^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=09c152a67cecd389391d50fede157f5725d30aef;p=ceph.git run-make-check.sh: git --ancestry-path is not backward compatible The behavior is different on git 1.8 which is the default on centos7. Signed-off-by: Loic Dachary --- diff --git a/run-make-check.sh b/run-make-check.sh index df88f1a00872..4ff0783194e3 100755 --- a/run-make-check.sh +++ b/run-make-check.sh @@ -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() {