]> git.ipfire.org Git - thirdparty/libvirt.git/commit
scripts: avoid error in DCO check on empty branches
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 27 Mar 2020 14:38:49 +0000 (14:38 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 27 Mar 2020 15:12:48 +0000 (15:12 +0000)
commit769ff77c9c5afaec97350a4931e5ca123b6af6d2
treebfb85bc6c69d4b6a08905304df7141b633a4e226
parentb9166baebe70a4b3577ddb6b2ee6af0dd4f60759
scripts: avoid error in DCO check on empty branches

If the DCO check is run on an empty branch (ie one which has no commits
different from master), it throws an error due to trying to interpret
the empty string as a git commit SHA.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
scripts/require-dco.py