Skip to content

Reduce the complexity of GitPushService#execute

Since today's merge of CE into EE, the complexity of the GitPushService#execute method has reached the threshold of "too high complexity" according to flog:

$ bundle exec rake flog
High complexity in GitPushService#execute. Score: 73

Build is https://gitlab.com/gitlab-org/gitlab-ee/builds/679700#down-build-trace