1
This commit is contained in:
Evan Pratten 2023-10-19 14:46:12 -04:00
parent 3cff803272
commit c6fafed3de

View File

@ -21,12 +21,11 @@ def main() -> int:
# Find every subdirectory that is a git repo # Find every subdirectory that is a git repo
git_dirs = [] git_dirs = []
all_dirs_recursive = list(args.start.glob("**/*")) all_dirs_recursive = list(args.start.glob("**/*.git"))
for path in all_dirs_recursive: for path in all_dirs_recursive:
if path.is_dir() and (path / ".git").is_dir(): git_dirs.append(path.parent)
git_dirs.append(path) if args.log_repos:
if args.log_repos: print(f"Reading GIT repo at: {path.parent}")
print(f"Reading GIT repo at: {path}")
# Collect the results of `git authors` from each repo # Collect the results of `git authors` from each repo
authors = [] authors = []