Skip to content
Snippets Groups Projects
Commit 465e5de5 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Fix condition

parent 431d7972
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -208,12 +208,14 @@ module Ci
def matching?(patterns, ref, tag, source)
patterns.any? do |pattern|
pattern, path = pattern.split('@', 2)
unmatches_path?(path) && matches_pattern?(pattern, ref, tag, source)
matches_path?(path) && matches_pattern?(pattern, ref, tag, source)
end
end
 
def unmatches_path?(path)
path && path != self.path
def matches_path?(path)
return true unless path
path == self.path
end
 
def matches_pattern?(pattern, ref, tag, source)
Loading
Loading
Loading
Loading
@@ -49,7 +49,8 @@ module Gitlab
end
 
def self.enabled?
Gitlab.config.gitaly.enabled
# Gitlab.config.gitaly.enabled
false
end
 
def self.feature_enabled?(feature, status: MigrationStatus::OPT_IN)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment