From: Ian Jackson Date: Mon, 9 Jan 2017 15:52:08 +0000 (+0000) Subject: dgit: Option parsing: Move pushing call in push X-Git-Tag: archive/debian/3.0~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=f6561dc13583c0b0c242d39d0056368ba2020121 dgit: Option parsing: Move pushing call in push Otherwise $isuite might not be set when we call access_something. Signed-off-by: Ian Jackson --- 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();