diff --git a/roles/git/checks/files/distgit_check_hook.py b/roles/git/checks/files/distgit_check_hook.py index b6576876a6..863231c762 100644 --- a/roles/git/checks/files/distgit_check_hook.py +++ b/roles/git/checks/files/distgit_check_hook.py @@ -70,7 +70,7 @@ def process_namespace(namespace): for dirpath, dirnames, filenames in os.walk(path): # Don't go down the .git repos - if dirpath.endswith('.git'): + if '.git' in dirpath: continue for repo in dirnames: