Skip to content

Use a correct COMMIT_ID detection regex for prohibited branches

Vasilii Iakliushin requested to merge 442441_fix_commit_id_regex into master

What does this MR do and why?

Contributes to #442441

Problem

\h{40} regular expression cannot detect SHA256 commits.

Solution

Use Gitlab::Git::COMMIT_ID regex that can handle both SHA1 and SHA256 commits.

Merge request reports