diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-12-11 18:13:41 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-12-11 18:19:18 +0000 |
commit | efa2ddb065afb2c7b4edaf8b345e67e10916e1b9 (patch) | |
tree | 7d9a8870b90cbfee28a9bf8a497bc0061f5c6648 /dgit | |
parent | 6286742d3fe942ac7105a0806e8d794a95d8a156 (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-x | dgit | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |