chiark / gitweb /
dgit: -wn clean check is a no-op
[dgit.git] / dgit
diff --git a/dgit b/dgit
index e88af4e6c41b779997e5fbe6f29c2d24af856bdf..4587af257532c1c64036651feeb7d8c4d7fd3d85 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6238,6 +6238,11 @@ sub clean_tree_check () {
     } elsif ($cleanmode =~ m{^dpkg-source}) {
        clean_tree_check_git_wd __
  "tree contains uncommitted files (NB dgit didn't run rules clean)";
+    } elsif ($cleanmode =~ m{^git}) {
+       # If we were actually cleaning these files would be summarily
+       # deleted.  Since we're not, and not using the working tree
+       # anyway, we can just ignore them - nothing will use them.
+    } elsif ($cleanmode eq 'none') {
     }
 }