summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-11 18:13:41 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-11 18:19:18 +0000
commitefa2ddb065afb2c7b4edaf8b345e67e10916e1b9 (patch)
tree7d9a8870b90cbfee28a9bf8a497bc0061f5c6648 /dgit
parent6286742d3fe942ac7105a0806e8d794a95d8a156 (diff)
dgit: rpush: Move responder_send_command into pre_ hook
The main program does little between these: recording and checking the cwd, mainly, and slurping the config. But this comman doesn't depend on the config and doing it earlier will simplify things when we have rpush-source too. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit3
1 files changed, 2 insertions, 1 deletions
diff --git a/dgit b/dgit
index 32241bc..66efa2c 100755
--- a/dgit
+++ b/dgit
@@ -5157,9 +5157,10 @@ sub pre_remote_push_build_host {
unless defined $protovsn;
changedir $dir;
+
+ responder_send_command("dgit-remote-push-ready $protovsn");
}
sub cmd_remote_push_build_host {
- responder_send_command("dgit-remote-push-ready $protovsn");
&cmd_push_built;
}