mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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:
committed by
Junio C Hamano
parent
31c42bff35
commit
5dbd767601
@@ -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!
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user