diff options
author | Kirill Zaitsev <kirik910@gmail.com> | 2018-11-15 21:42:10 +0200 |
---|---|---|
committer | Kirill Zaitsev <kirik910@gmail.com> | 2018-11-15 22:04:47 +0200 |
commit | 9bea3c0fbb6c16adcdccf7044583415bda8234c1 (patch) | |
tree | 5dea5b74169f5d340e0276887caf55f4fd21acbf /lib | |
parent | 97e3d5ce292d056a9dd15e16823b9570832db02a (diff) | |
download | gitlab-ce-9bea3c0fbb6c16adcdccf7044583415bda8234c1.tar.gz |
Add glob for CI changes detection
Diffstat (limited to 'lib')
-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 |