]> git.ipfire.org Git - thirdparty/git.git/commit
t0411: add tests for cloning from partial repo
authorFilip Hejsek <filip.hejsek@gmail.com>
Sun, 28 Jan 2024 03:29:33 +0000 (04:29 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 17 Apr 2024 20:29:53 +0000 (22:29 +0200)
commit5c5a4a1c05932378d259b1fdd9526cab971656a2
tree8569b26bc0cea2780bce159563bc359c90a48ebf
parent9e06401098f5f83fc9a69ab27e449ae746638892
t0411: add tests for cloning from partial repo

Cloning from a partial repository must not fetch missing objects into
the partial repository, because that can lead to arbitrary code
execution.

Add a couple of test cases, pretending to the `upload-pack` command (and
to that command only) that it is working on a repository owned by
someone else.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Filip Hejsek <filip.hejsek@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
t/t0411-clone-from-partial.sh [new file with mode: 0755]