Ignore deleted when querying git in ansible-test.

This commit is contained in:
Matt Clay 2019-07-23 22:50:53 -07:00
parent bafd06bc89
commit 3c68a2e5f0

View file

@ -27,5 +27,7 @@ class GitSource(SourceProvider):
git = Git(path) git = Git(path)
paths = git.get_file_names(['--cached', '--others', '--exclude-standard']) paths = git.get_file_names(['--cached', '--others', '--exclude-standard'])
deleted_paths = git.get_file_names(['--deleted'])
paths = sorted(set(paths) - set(deleted_paths))
return paths return paths