From: Roland Clobus <rclobus@rclobus.nl>
Date: Wed, 26 Mar 2025 00:03:40 +0100
Subject: t/00: Ignore files deleted from git

Now it is possible to build a Debian package with 'debuild -b -us -uc',
on a clean git workspace.
---
 t/00-compile-check-all.t | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/t/00-compile-check-all.t b/t/00-compile-check-all.t
index 0cb46ff..d49f433 100755
--- a/t/00-compile-check-all.t
+++ b/t/00-compile-check-all.t
@@ -22,12 +22,17 @@ $Test::Strict::TEST_WARNINGS = 1;
 # We don't want to check files under external, as there might be
 # missing dependencies like perltidy in OBS builds
 chomp(my @external_files = qx{find external -type f});
+my @deleted_git_files = [];
+if (-d '.git' and which('git')) {
+	chomp(@deleted_git_files = qx{git ls-files --deleted});
+}
 $Test::Strict::TEST_SKIP = [
     't/data/tests/main.pm',
     't/data/tests/product/main.pm',
     't/pool/product/foo/main.pm',
     'tools/lib/perlcritic/Perl/Critic/Policy/HashKeyQuotes.pm',
     @external_files,
+    @deleted_git_files,
 ];
 
 # Prevent any non-tracked files or files within .git (e.g. in.git/rr-cache) to
