diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-12-05 20:02:44 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-10 16:14:17 -0800 |
commit | 5dbd767601812209273ae007a97b7c9305dc6cfd (patch) | |
tree | e17d9738c8084dc2ba7e47f58e8d6eb5e99ee623 /send-pack.c | |
parent | receive-pack: reorder some code in unpack() (diff) | |
download | tgif-5dbd767601812209273ae007a97b7c9305dc6cfd.tar.xz |
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>
Diffstat (limited to 'send-pack.c')
-rw-r--r-- | send-pack.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/send-pack.c b/send-pack.c index 14005faefc..cd536b4ed5 100644 --- a/send-pack.c +++ b/send-pack.c @@ -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! */ |