From 3c68a2e5f00199e06aded04cb4523c4a73bbbcbc Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 23 Jul 2019 22:50:53 -0700 Subject: [PATCH] Ignore deleted when querying git in ansible-test. --- test/runner/lib/provider/source/git.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/runner/lib/provider/source/git.py b/test/runner/lib/provider/source/git.py index db82d03d317..be5175af008 100644 --- a/test/runner/lib/provider/source/git.py +++ b/test/runner/lib/provider/source/git.py @@ -27,5 +27,7 @@ class GitSource(SourceProvider): git = Git(path) 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