summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 3 insertions, 1 deletions
diff --git a/dgit b/dgit
index 1d0fe85..6cf10fb 100755
--- a/dgit
+++ b/dgit
@@ -6205,7 +6205,9 @@ sub clean_tree_check () {
# That was done by check_not_dirty, and by now we may have run
# the rules clean target which might modify tracked files (!)
if ($cleanmode =~ m{^check}) {
- my $leftovers = cmdoutput @git, qw(clean -xdn);
+ my @cmd = (@git, qw(clean -dn));
+ push @cmd, qw(-x);
+ my $leftovers = cmdoutput @cmd;
if (length $leftovers) {
print STDERR $leftovers, "\n" or confess $!;
fail __