summaryrefslogtreecommitdiff
path: root/builtin/send-pack.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-05 13:02:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-11 00:14:16 (GMT)
commit606e435a0a11634744282068174240caf2926fec (patch)
tree2de854c037ffcfd5fd82a6c655f6e129ebcaa9e8 /builtin/send-pack.c
parent0b854bcc2a3b34c09835393234cd807fde08722f (diff)
downloadgit-606e435a0a11634744282068174240caf2926fec.zip
git-606e435a0a11634744282068174240caf2926fec.tar.gz
git-606e435a0a11634744282068174240caf2926fec.tar.bz2
clone: prevent --reference to a shallow repository
If we borrow objects from another repository, we should also pay attention to their $GIT_DIR/shallow (and even info/grafts). But current alternates code does not. Reject alternate repos that are shallow because we do not do it right. In future the alternate code may be updated to check $GIT_DIR/shallow properly so that this restriction could be lifted. 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')
0 files changed, 0 insertions, 0 deletions