{"thread":{"id":"13622","subject":"[PATCH] Add test for cloning with \"--reference\" repo being a subset of source repo","startedAt":"2008-05-22T22:03:00Z","lastAt":"2008-05-22T22:31:16Z","messageCount":2,"participants":["Daniel Barkalow","Johan Herland"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"77502","messageId":"alpine.LNX.1.00.0805221759430.19665@iabervon.org","threadId":"13622","inReplyTo":null,"subject":"[PATCH] Add test for cloning with \"--reference\" repo being a subset of source repo","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2008-05-22T22:03:00Z","receivedAt":"2008-05-22T22:03:00Z","isPatch":true,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"From: Johan Herland <johan@herland.net>\n\nThe 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>\nSigned-off-by: Daniel Barkalow <barkalow@iabervon.org>\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.3.7\n"},{"id":"77504","messageId":"200805230031.16150.johan@herland.net","threadId":"13622","inReplyTo":"alpine.LNX.1.00.0805221759430.19665@iabervon.org","subject":"Re: [PATCH] Add test for cloning with \"--reference\" repo being a subset of source repo","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2008-05-22T22:31:16Z","receivedAt":"2008-05-22T22:31:16Z","isPatch":true,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"On Friday 23 May 2008, Daniel Barkalow wrote:\n> From: Johan Herland <johan@herland.net>\n> \n> The first test in this series tests \"git clone -l -s --reference B A C\",\n> where repo B is a superset of repo A (A has one commit, B has the same\n> commit plus another). In this case, all objects to be cloned are already\n> present in B.\n> \n> However, 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\"),\n> i.e. some objects are not available in the \"--reference\" repo, and will\n> have to be found in the source repo.\n> \n> Signed-off-by: Johan Herland <johan@herland.net>\n> Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>\n\nThanks for the resend.\n\n...Johan\n\n-- \nJohan Herland, <johan@herland.net>\nwww.herland.net\n"}]}