diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-12-05 20:02:31 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-10 16:14:16 -0800 |
commit | 606e435a0a11634744282068174240caf2926fec (patch) | |
tree | 2de854c037ffcfd5fd82a6c655f6e129ebcaa9e8 /merge-blobs.c | |
parent | 0b854bcc2a3b34c09835393234cd807fde08722f (diff) | |
download | git-606e435a0a11634744282068174240caf2926fec.tar.gz git-606e435a0a11634744282068174240caf2926fec.tar.xz |
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 'merge-blobs.c')
0 files changed, 0 insertions, 0 deletions