summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-05 13:02:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-11 00:14:18 (GMT)
commitf2c681cf12c54ce3859b36693f8a13c36126577b (patch)
treeab72b1abe85c0a0dd87fd8a853e19a7e20437be6 /builtin
parentc29a7b8b3f71c1bede1f57626bafe120280aaea3 (diff)
downloadgit-f2c681cf12c54ce3859b36693f8a13c36126577b.zip
git-f2c681cf12c54ce3859b36693f8a13c36126577b.tar.gz
git-f2c681cf12c54ce3859b36693f8a13c36126577b.tar.bz2
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')
-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 664dd20..cc25744 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)) {