From f6561dc13583c0b0c242d39d0056368ba2020121 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 9 Jan 2017 15:52:08 +0000 Subject: [PATCH] dgit: Option parsing: Move pushing call in push Otherwise $isuite might not be set when we call access_something. Signed-off-by: Ian Jackson --- dgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dgit b/dgit index 89073a5c..cd249b42 100755 --- a/dgit +++ b/dgit @@ -4333,7 +4333,6 @@ END sub cmd_push { parseopts(); - pushing(); badusage "-p is not allowed with dgit push" if defined $package; check_not_dirty(); my $clogp = parsechangelog(); @@ -4346,6 +4345,7 @@ sub cmd_push { badusage "incorrect arguments to dgit push"; } $isuite = getfield $clogp, 'Distribution'; + pushing(); if ($new_package) { local ($package) = $existing_package; # this is a hack canonicalise_suite(); -- 2.30.2