We mustn't call pushing until we have parsed the arguments enough to
find $isuite. So remove the call to pushing from
cmd_remote_push_build_host. Now we rely on cmd_push's call to
pushing, which it does after the argument parsing.
We then need to move rpush_handle_protovsn_bothends (which implicitly
calls accesss_*) too, until we have got $isuite and called pushing().
We can move that into dopush.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
prep_ud();
access_giturl(); # check that success is vaguely likely
prep_ud();
access_giturl(); # check that success is vaguely likely
+ rpush_handle_protovsn_bothends() if $we_are_initiator;
select_tagformat();
my $clogpfn = ".git/dgit/changelog.822.tmp";
select_tagformat();
my $clogpfn = ".git/dgit/changelog.822.tmp";
$we_are_responder = 1;
$us .= " (build host)";
$we_are_responder = 1;
$us .= " (build host)";
open PI, "<&STDIN" or die $!;
open STDIN, "/dev/null" or die $!;
open PO, ">&STDOUT" or die $!;
open PI, "<&STDIN" or die $!;
open STDIN, "/dev/null" or die $!;
open PO, ">&STDOUT" or die $!;
unless defined $protovsn;
responder_send_command("dgit-remote-push-ready $protovsn");
unless defined $protovsn;
responder_send_command("dgit-remote-push-ready $protovsn");
- rpush_handle_protovsn_bothends();
changedir $dir;
&cmd_push;
}
changedir $dir;
&cmd_push;
}