summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKirill Zaitsev <kirik910@gmail.com>2018-11-15 21:42:10 +0200
committerKirill Zaitsev <kirik910@gmail.com>2018-11-15 22:04:47 +0200
commit9bea3c0fbb6c16adcdccf7044583415bda8234c1 (patch)
tree5dea5b74169f5d340e0276887caf55f4fd21acbf /lib
parent97e3d5ce292d056a9dd15e16823b9570832db02a (diff)
downloadgitlab-ce-9bea3c0fbb6c16adcdccf7044583415bda8234c1.tar.gz
Add glob for CI changes detection
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/build/policy/changes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/build/policy/changes.rb b/lib/gitlab/ci/build/policy/changes.rb
index 7bf51519752..1663c875426 100644
--- a/lib/gitlab/ci/build/policy/changes.rb
+++ b/lib/gitlab/ci/build/policy/changes.rb
@@ -14,7 +14,7 @@ module Gitlab
pipeline.modified_paths.any? do |path|
@globs.any? do |glob|
- File.fnmatch?(glob, path, File::FNM_PATHNAME | File::FNM_DOTMATCH)
+ File.fnmatch?(glob, path, File::FNM_PATHNAME | File::FNM_DOTMATCH | File::FNM_EXTGLOB)
end
end
end