summaryrefslogtreecommitdiff
path: root/builtin/send-pack.c
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-05 20:02:52 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-10 16:14:18 -0800
commitf2c681cf12c54ce3859b36693f8a13c36126577b (patch)
treeab72b1abe85c0a0dd87fd8a853e19a7e20437be6 /builtin/send-pack.c
parentreceive-pack: support pushing to a shallow clone via http (diff)
downloadtgif-f2c681cf12c54ce3859b36693f8a13c36126577b.tar.xz
send-pack: support pushing from a shallow clone via http
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 'builtin/send-pack.c')
-rw-r--r--builtin/send-pack.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/send-pack.c b/builtin/send-pack.c
index 664dd20f40..cc25744817 100644
--- a/builtin/send-pack.c
+++ b/builtin/send-pack.c
@@ -209,9 +209,6 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
(send_all && args.send_mirror))
usage(send_pack_usage);
- if (is_repository_shallow() && args.stateless_rpc)
- die("attempt to push from a shallow repository");
-
if (remote_name) {
remote = remote_get(remote_name);
if (!remote_has_url(remote, dest)) {