Group/instance push rules not working for the first push of a new repo
Summary
Group/instance push rules does not work for the first push of a new repo under the group or on the instance.
Steps to reproduce
Example Project
N/A
What is the current bug behavior?
If push rules are configured at group level or instance level, for a new project the push rules don't work for the first push.
For any subsequent push in the repos the push rules function as expected.
What is the expected correct behavior?
The push rules should work for all pushes.
Relevant logs and/or screenshots
This should be reproducible on gitlab.com or other instance.
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)