summaryrefslogtreecommitdiff
path: root/lib/api/triggers.rb
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-09-13 11:43:41 +0200
committerPaco Guzman <pacoguzmanp@gmail.com>2016-09-13 11:50:13 +0200
commit08871cc36ac5ffea541ea5b5e7666327e65c6b9d (patch)
treeec92ae2bb7af1a0ab45cc433eb8c2d7d0c2f229c /lib/api/triggers.rb
parentf7be904afa2edf731e87f1f60918c0d82234eff4 (diff)
downloadgitlab-ce-08871cc36ac5ffea541ea5b5e7666327e65c6b9d.tar.gz
Avoid protected branches checks when verifying access without branch name
GitlabShell verify access sending ‘_any’ as the changes made on the git command, in those cases Gitlab::Checks::ChangeAccess won’t receive a branch_name so we don’t need to check for access to the protected branches on that repository. So we avoid some git operations in case the are not cached (empty_repo?) and some database lookups to get protected branches. These request is happening in every push.
Diffstat (limited to 'lib/api/triggers.rb')
0 files changed, 0 insertions, 0 deletions