From 52174c9a5976b18dc3d2ff020a962a84db35019c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 11 Oct 2018 01:28:31 +0100 Subject: [PATCH] dgit: Break out @forbid in check_not_dirty Signed-off-by: Ian Jackson --- dgit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dgit b/dgit index 3591231f..5754e456 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; } -- 2.30.2