From 09c152a67cecd389391d50fede157f5725d30aef Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 5 Feb 2015 14:37:38 +0100 Subject: [PATCH] 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 --- run-make-check.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-make-check.sh b/run-make-check.sh index df88f1a00872a..4ff0783194e37 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() { -- 2.39.5