mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-12-23 04:21:58 +00:00
Don't show .git directories in indexes.
This commit is contained in:
parent
89e5a1061a
commit
17fae8c60e
@ -146,7 +146,7 @@ def main(args):
|
||||
|
||||
for path in paths:
|
||||
print(f"{path=}")
|
||||
if path == 'index.html':
|
||||
if path in [ 'index.html', '.git' ]:
|
||||
continue
|
||||
|
||||
fullpath = os.path.join(directory, path)
|
||||
|
Loading…
Reference in New Issue
Block a user