From: Sébastien Han Date: Tue, 3 Jul 2018 07:35:44 +0000 (+0200) Subject: ceph-ansible-pr-syntax-check: use master instead of HEAD X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1066%2Fhead;p=ceph-build.git ceph-ansible-pr-syntax-check: use master instead of HEAD origin/HEAD does not exist so let's use origin/master instead. This prevents the following error: bad revision 'origin/HEAD' Signed-off-by: Sébastien Han --- diff --git a/ceph-ansible-pr-syntax-check/build/build b/ceph-ansible-pr-syntax-check/build/build index e5b3301c..199e0d82 100644 --- a/ceph-ansible-pr-syntax-check/build/build +++ b/ceph-ansible-pr-syntax-check/build/build @@ -47,7 +47,7 @@ function group_vars_check { } function test_sign_off { - test "$(git log --oneline origin/HEAD..HEAD | wc -l)" -ne "$(git log origin/HEAD..HEAD | grep -c Signed-off-by)" && echo "One or more commits is/are missing a Signed-off-by. Add it with 'git commit -s'." + test "$(git log --oneline origin/master..HEAD | wc -l)" -ne "$(git log origin/master..HEAD | grep -c Signed-off-by)" && echo "One or more commits is/are missing a Signed-off-by. Add it with 'git commit -s'." return 1 }