summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-10-11 01:28:31 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-10-11 01:28:31 +0100
commit52174c9a5976b18dc3d2ff020a962a84db35019c (patch)
tree6efa6a2a0dbe2d6c857ab5bd123b4b09436fe5fa
parent67a5c76a1ca22f119a6b316faddb0cb3767060b7 (diff)
dgit: Break out @forbid in check_not_dirty
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit3
1 files changed, 2 insertions, 1 deletions
diff --git a/dgit b/dgit
index 3591231..5754e45 100755
--- a/dgit
+++ b/dgit
@@ -3817,7 +3817,8 @@ sub pull () {
}
sub check_not_dirty () {
- foreach my $f (qw(local-options local-patch-header)) {
+ my @forbid = qw(local-options local-patch-header);
+ foreach my $f (@forbid) {
if (stat_exists "debian/source/$f") {
fail f_ "git tree contains debian/source/%s", $f;
}