diff options
author | Kirill Zaitsev <kirik910@gmail.com> | 2018-11-15 22:42:10 +0300 |
---|---|---|
committer | Kirill Zaitsev <kirik910@gmail.com> | 2018-11-15 23:04:47 +0300 |
commit | 9bea3c0fbb6c16adcdccf7044583415bda8234c1 (patch) | |
tree | 5dea5b74169f5d340e0276887caf55f4fd21acbf /lib/gitlab/ci | |
parent | 97e3d5ce292d056a9dd15e16823b9570832db02a (diff) |
Add glob for CI changes detection
Diffstat (limited to 'lib/gitlab/ci')
-rw-r--r-- | lib/gitlab/ci/build/policy/changes.rb | 2 |
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 |