Skip to content

Commit 36f7dfe

Browse files
committed
push: not send push-options to server with --dry-run
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
1 parent 2f9fdb4 commit 36f7dfe

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)