summaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-05 20:02:50 +0700
committerJunio C Hamano <gitster@pobox.com>2013-12-10 16:14:18 -0800
commit16094885ca94f72abc28a915f9aa4021e203a16d (patch)
treed9622d3223844e17bd2195171ddfac32341431ba /upload-pack.c
parent58f2ed051fe9b966100d8c531a79200628490ec4 (diff)
downloadgit-16094885ca94f72abc28a915f9aa4021e203a16d.tar.gz
smart-http: support shallow fetch/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 'upload-pack.c')
-rw-r--r--upload-pack.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/upload-pack.c b/upload-pack.c
index 28269c7462..2d022978a8 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -836,8 +836,6 @@ int main(int argc, char **argv)
if (!enter_repo(dir, strict))
die("'%s' does not appear to be a git repository", dir);
- if (is_repository_shallow() && stateless_rpc)
- die("attempt to push into a shallow repository");
git_config(upload_pack_config, NULL);
upload_pack();