mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge branch 'cboltz-skip-git-dir' into 'master'
ignore .git in is_skippable_dir() See merge request apparmor/apparmor!77 Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
commit
3b5683be29
2 changed files with 2 additions and 1 deletions
|
@ -2038,7 +2038,7 @@ def is_skippable_file(path):
|
|||
return False
|
||||
|
||||
def is_skippable_dir(path):
|
||||
if re.search('^(.*/)?(disable|cache|force-complain|lxc)/?$', path):
|
||||
if re.search('^(.*/)?(disable|cache|force-complain|lxc|\.git)/?$', path):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
@ -479,6 +479,7 @@ class AaTest_is_skippable_dir(AATest):
|
|||
('force-complain', True),
|
||||
('/etc/apparmor.d/cache', True),
|
||||
('/etc/apparmor.d/lxc/', True),
|
||||
('/etc/apparmor.d/.git/', True),
|
||||
|
||||
('dont_disable', False),
|
||||
('/etc/apparmor.d/cache_foo', False),
|
||||
|
|
Loading…
Add table
Reference in a new issue