{"thread":{"id":"12595","subject":"[PATCH 01/11] Add test for cloning with \"--reference\" repo being a subset of source repo","startedAt":"2008-03-08T23:03:55Z","lastAt":"2008-03-08T23:03:55Z","messageCount":1,"participants":["Johan Herland"],"isPatch":true,"patchVersion":1,"patchTotal":11},"messages":[{"id":"71468","messageId":"alpine.LNX.1.00.0803081803070.19665@iabervon.org","threadId":"12595","inReplyTo":null,"subject":"[PATCH 01/11] Add test for cloning with \"--reference\" repo being a subset of source repo","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2008-03-08T23:03:55Z","receivedAt":"2008-03-08T23:03:55Z","isPatch":true,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"The first test in this series tests \"git clone -l -s --reference B A C\",\nwhere repo B is a superset of repo A (A has one commit, B has the same\ncommit plus another). In this case, all objects to be cloned are already\npresent in B.\n\nHowever, we should also test the case where the \"--reference\" repo is a\n_subset_ of the source repo (e.g. \"git clone -l -s --reference A B C\"),\ni.e. some objects are not available in the \"--reference\" repo, and will\nhave to be found in the source repo.\n\nSigned-off-by: Johan Herland <johan@herland.net>\n---\n t/t5700-clone-reference.sh |    5 +++++\n 1 files changed, 5 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t5700-clone-reference.sh b/t/t5700-clone-reference.sh\nindex b6a5486..d318780 100755\n--- a/t/t5700-clone-reference.sh\n+++ b/t/t5700-clone-reference.sh\n@@ -113,4 +113,9 @@ diff expected current'\n \n cd \"$base_dir\"\n \n+test_expect_success 'cloning with reference being subset of source (-l -s)' \\\n+'git clone -l -s --reference A B E'\n+\n+cd \"$base_dir\"\n+\n test_done\n-- \n1.5.4.3.327.g614d7.dirty\n\n"}]}