Ignore deleted when querying git in ansible-test.
This commit is contained in:
parent
bafd06bc89
commit
3c68a2e5f0
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue