summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Pitino <fpitino@gitlab.com>2019-07-30 20:24:15 +0200
committerFabio Pitino <fpitino@gitlab.com>2019-07-30 20:24:15 +0200
commitb725ba9b0eadfa087888ba304e3963c26ae518b5 (patch)
tree588301fd7f50e1cc12502365db78d984b9c03871
parent7681572591219f8b9e5e02ad6ee7a5fee827380e (diff)
downloadgitlab-ce-b725ba9b0eadfa087888ba304e3963c26ae518b5.tar.gz
Support pull and pull-requests external refs
-rw-r--r--lib/gitlab/git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git.rb b/lib/gitlab/git.rb
index 8d25dfacdfe..2327a7af15b 100644
--- a/lib/gitlab/git.rb
+++ b/lib/gitlab/git.rb
@@ -12,7 +12,7 @@ module Gitlab
COMMIT_ID = /\A[0-9a-f]{40}\z/.freeze
TAG_REF_PREFIX = "refs/tags/".freeze
BRANCH_REF_PREFIX = "refs/heads/".freeze
- REQUEST_REF_SUBFOLDER_REGEX = %r(^refs/(merge_requests|pull)/.+).freeze
+ REQUEST_REF_SUBFOLDER_REGEX = %r(^refs/(pull|pull-requests)/.+).freeze
BaseError = Class.new(StandardError)
CommandError = Class.new(BaseError)