From c825ebf5a06f48a903b8e5d9d0bcc593c37633c8 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 17 Apr 2018 15:22:17 +0200 Subject: [PATCH] Another attempt at not going down the rabbit hole Signed-off-by: Pierre-Yves Chibon --- roles/git/checks/files/distgit_check_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: