summaryrefslogtreecommitdiff
path: root/t/unit-tests/t-oid-array.c
diff options
context:
space:
mode:
authorDerrick Stolee <derrickstolee@github.com>2022-08-09 13:11:43 +0000
committerJunio C Hamano <gitster@pobox.com>2022-08-10 14:07:37 -0700
commite21e663cd1942df29979d3e01f7eacb532727bb7 (patch)
tree7598ed0a850e002b372a5f88e5abb4a5c305eb31 /t/unit-tests/t-oid-array.c
parent59c1752ab6768cb9c380f0a7c9d06af79d183f67 (diff)
clone: --bundle-uri cannot be combined with --depth
A previous change added the '--bundle-uri' option, but did not check if the --depth parameter was included. Since bundles are not compatible with shallow clones, provide an error message to the user who is attempting this combination. I am leaving this as its own change, separate from the one that implements '--bundle-uri', because this is more of an advisory for the user. There is nothing wrong with bootstrapping with bundles and then fetching a shallow clone. However, that is likely going to involve too much work for the client _and_ the server. The client will download all of this bundle information containing the full history of the repository only to ignore most of it. The server will get a shallow fetch request, but with a list of haves that might cause a more painful computation of that shallow pack-file. Reviewed-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-oid-array.c')
0 files changed, 0 insertions, 0 deletions