mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-21 23:09:52 +00:00
don't include .git directories in index listings
This commit is contained in:
parent
451bc567e2
commit
5c8e1e5253
3
gronk.py
3
gronk.py
@ -138,6 +138,9 @@ class FileMap:
|
|||||||
entries = []
|
entries = []
|
||||||
|
|
||||||
for path in filepath.iterdir():
|
for path in filepath.iterdir():
|
||||||
|
if '.git' in path.parts:
|
||||||
|
continue
|
||||||
|
|
||||||
if path.is_dir():
|
if path.is_dir():
|
||||||
entry = self._get_directory_properties(
|
entry = self._get_directory_properties(
|
||||||
path, include_index_entries=False)
|
path, include_index_entries=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user