From ac04bed0f280888bc6b255f629f37e43130d61f5 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Sun, 24 Oct 2021 05:09:08 +0200 Subject: [PATCH] This seems closer to the original semantics --- xt/gitignore.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xt/gitignore.t b/xt/gitignore.t index a46faa8..268b4fd 100755 --- a/xt/gitignore.t +++ b/xt/gitignore.t @@ -23,7 +23,7 @@ if (which('git') and -d '.git') { use_ok( 'Git' ); # First, check that no tracked files are ignored -my $cmd = Git::command_output_pipe('ls-files', '--others', '--ignored', '--exclude-standard'); +my $cmd = Git::command_output_pipe('ls-files', '--cached', '--ignored', '--exclude-standard'); my $output; while (<$cmd>) { $output .= "--> $_" } close $cmd;