Revert "Merge branch 'ej-5671-wait-for-git-log-to-finish' into 'master'"
This reverts commit 4d45db66, reversing changes made to 3cd2a30b.
Reverted as pipeline was failing: https://gitlab.com/gitlab-org/gitlab/-/pipelines/1089788467
Will re-open the issue.