summaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-05 20:02:44 +0700
committerJunio C Hamano <gitster@pobox.com>2013-12-10 16:14:17 -0800
commit5dbd767601812209273ae007a97b7c9305dc6cfd (patch)
treee17d9738c8084dc2ba7e47f58e8d6eb5e99ee623 /send-pack.c
parent31c42bff35ffc0a99ca77947389749d1397e1079 (diff)
downloadgit-5dbd767601812209273ae007a97b7c9305dc6cfd.tar.gz
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.c3
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!
*/