From: Jiang Xin <zhiyou.jx@xxxxxxxxxxxxxxx> Signed-off-by: Jiang Xin <zhiyou.jx@xxxxxxxxxxxxxxx> --- send-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send-pack.c b/send-pack.c index 4845f63737..89a2d47928 100644 --- a/send-pack.c +++ b/send-pack.c @@ -678,7 +678,7 @@ int send_pack(struct send_pack_args *args, } } - if (use_push_options) { + if (use_push_options && !args->dry_run) { struct string_list_item *item; packet_buf_flush(&req_buf); -- 2.47.0.rc1.21.g81e7bd6151