From 5c8e1e5253e681dce25e0666440a409fe789c2b9 Mon Sep 17 00:00:00 2001 From: Akbar Rahman Date: Tue, 2 Jan 2024 15:15:40 +0000 Subject: [PATCH] don't include .git directories in index listings --- gronk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gronk.py b/gronk.py index 667448d..95de46b 100755 --- a/gronk.py +++ b/gronk.py @@ -138,6 +138,9 @@ class FileMap: entries = [] for path in filepath.iterdir(): + if '.git' in path.parts: + continue + if path.is_dir(): entry = self._get_directory_properties( path, include_index_entries=False)