chiark / gitweb /
dgit: Option parsing: Move pushing call in push
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 15:52:08 +0000 (15:52 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 15:52:14 +0000 (15:52 +0000)
Otherwise $isuite might not be set when we call access_something.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 89073a5..cd249b4 100755 (executable)
--- 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();