Skip to content

Commit bccc0f3

Browse files
jiangxingitster
authored andcommitted
push: not send push-options to server with --dry-run
Signed-off-by: Jiang Xin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dcdbd9d commit bccc0f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

send-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ int send_pack(struct send_pack_args *args,
678678
}
679679
}
680680

681-
if (use_push_options) {
681+
if (use_push_options && !args->dry_run) {
682682
struct string_list_item *item;
683683

684684
packet_buf_flush(&req_buf);

0 commit comments

Comments
 (0)