fix glob
This commit is contained in:
parent
3cff803272
commit
c6fafed3de
@ -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}")
|
print(f"Reading GIT repo at: {path.parent}")
|
||||||
|
|
||||||
# Collect the results of `git authors` from each repo
|
# Collect the results of `git authors` from each repo
|
||||||
authors = []
|
authors = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user