]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pr-syntax-check: use master instead of HEAD 1066/head
authorSébastien Han <seb@redhat.com>
Tue, 3 Jul 2018 07:35:44 +0000 (09:35 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 3 Jul 2018 07:35:44 +0000 (09:35 +0200)
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 <seb@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index e5b3301c7c1abb632e912296cce37c67b055e382..199e0d82c2c902a7589ea364af625dc622c7faf3 100644 (file)
@@ -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
 }