Skip to content

Commit

Permalink
push: not send push-options to server with --dry-run
Browse files Browse the repository at this point in the history
Signed-off-by: Jiang Xin <[email protected]>
  • Loading branch information
jiangxin committed Dec 10, 2024
1 parent 85f8f2d commit 3c6c720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion send-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c6c720

Please sign in to comment.