my.coding.commits: fix for git repo discovery after fdfind v9

This commit is contained in:
Dima Gerasimov 2024-03-13 00:18:12 +00:00 committed by karlicoss
parent 751ed02f43
commit 103ea2096e

View file

@ -155,6 +155,7 @@ def git_repos_in(roots: List[Path]) -> List[Path]:
_fd_path(), _fd_path(),
# '--follow', # right, not so sure about follow... make configurable? # '--follow', # right, not so sure about follow... make configurable?
'--hidden', '--hidden',
'--no-ignore', # otherwise doesn't go inside .git directory (from fd v9)
'--full-path', '--full-path',
'--type', 'f', '--type', 'f',
'/HEAD', # judging by is_git_dir, it should always be here.. '/HEAD', # judging by is_git_dir, it should always be here..