receive/send-pack: support pushing from a shallow clone

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy
2013-12-05 20:02:44 +07:00
committed by Junio C Hamano
parent 31c42bff35
commit 5dbd767601
5 changed files with 146 additions and 11 deletions

View File

@ -214,6 +214,9 @@ int send_pack(struct send_pack_args *args,
return 0;
}
if (!args->dry_run)
advertise_shallow_grafts(out);
/*
* Finally, tell the other end!
*/