Skip to content

Commit 9b36312

Browse files
committed
Do not fail when git file finder runs in empty subdirectory
1 parent 61ba722 commit 9b36312

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

setuptools_scm/git_file_finder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def find_files(path=''):
4747
git_files, git_dirs = _git_ls_files_and_dirs(toplevel)
4848
realpath = os.path.normcase(os.path.realpath(path))
4949
assert realpath.startswith(toplevel)
50-
assert realpath in git_dirs
5150
seen = set()
5251
res = []
5352
for dirpath, dirnames, filenames in os.walk(realpath, followlinks=True):

0 commit comments

Comments
 (0)