christophebedard / dco-check

Simple DCO check script to be used in any CI
Apache License 2.0
12 stars 6 forks source link

Fails to check commits for a brand new branch on GitLab #101

Open christophebedard opened 3 years ago

christophebedard commented 3 years ago

See here: https://github.com/christophebedard/dco-check/pull/94#issuecomment-789200943

For example, in the comment linked above, I created a new project and pushed a first commit. This created the default branch (master) at the same time. $CI_COMMIT_BEFORE_SHA is then 0000000....

With #94, dco-check disregards situations like that as if there were no new commits. This should be fixed.