chiark / gitweb /
dgit: Option parsing: Move pushing call in push
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 89073a5ced2988cbccd36caa057418e196feec57..cd249b4226ada31ea2ae56a2e593a4c1cf5b715e 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();