chiark / gitweb /
Reject debian/source/local-patch-header
[dgit.git] / dgit
diff --git a/dgit b/dgit
index f4e2abfb4c9998c5002fa6bd729cbd0ba7a377e3..a49c7667e611c577e70cd48f75ff122e277a62be 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1762,8 +1762,10 @@ sub check_not_dirty () {
        failedcmd @cmd;
     }
 
-    if (stat_exists "debian/source/local-options") {
-       fail "git tree contains debian/source/local-options";
+    foreach my $f (qw(local-options local-patch-header)) {
+       if (stat_exists "debian/source/$f") {
+           fail "git tree contains debian/source/$f";
+       }
     }
 }