{"thread":{"id":"55423","subject":"How to mirror a directory of a repo?","startedAt":"2021-04-02T00:50:04Z","lastAt":"2021-04-02T02:11:12Z","messageCount":2,"participants":["Peng Yu","brian m. carlson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"420858","messageId":"CABrM6wkbvC4AvFnbirtRDAr0VBPaueoSP2PEr0W89evG3sPqAQ@mail.gmail.com","threadId":"55423","inReplyTo":"CAEV-rjfAW56702Vkj-AiXA2WVqFnMjh0Ox-jyv3E1P570GdX_A@mail.gmail.com","subject":"How to mirror a directory of a repo?","fromName":"Peng Yu","fromEmail":"pengyu.ut@gmail.com","sentAt":"2021-04-02T00:49:50Z","receivedAt":"2021-04-02T00:50:04Z","isPatch":false,"sender":{"key":"pengyu.ut@gmail.com","avatar":null},"body":"https://github.com/bayandin/chromedriver\n\nIt seems that the above repo is a mirror of one particular\nsubdirectory of the main chromium repository\nhttps://chromium.googlesource.com/chromium/src/\n\nhttps://chromium.googlesource.com/chromium/src/+/master/chrome/test/chromedriver/\n\nI don't know how a repo can be partially cloned. Could anybody let me\nknow how this is done? Thanks.\n\n-- \nRegards,\nPeng\n"},{"id":"420860","messageId":"YGZ9OOf+cr5JvMwv@camp.crustytoothpaste.net","threadId":"55423","inReplyTo":"CABrM6wkbvC4AvFnbirtRDAr0VBPaueoSP2PEr0W89evG3sPqAQ@mail.gmail.com","subject":"Re: How to mirror a directory of a repo?","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2021-04-02T02:11:04Z","receivedAt":"2021-04-02T02:11:12Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2021-04-02 at 00:49:50, Peng Yu wrote:\n> https://github.com/bayandin/chromedriver\n> \n> It seems that the above repo is a mirror of one particular\n> subdirectory of the main chromium repository\n> https://chromium.googlesource.com/chromium/src/\n> \n> https://chromium.googlesource.com/chromium/src/+/master/chrome/test/chromedriver/\n> \n> I don't know how a repo can be partially cloned. Could anybody let me\n> know how this is done? Thanks.\n\nThere isn't a way to clone just a single directory of a repository.  The\nprotocol doesn't consider that, and even if you could get such a clone\nto happen, it would be considered corrupt and a lot of things would be\nbroken.  Partial clone can be used to do something similar, but not\ncompletely the same.  In such a case, you download stub objects that are\nfilled in by a connection to the server on demand.\n\nWhat is most likely to have happened is that someone took a script that\nextracts the commits that touch a particular directory and created a\nnew, entirely different repository and synthesized commits there with\nthe same commit metadata.  The two repositories are likely completely\nindependent in terms of histories.\n\nSorry there isn't a magic cool explanation for what's going on here, but\nit really is essentially a copy-and-paste into a different repo.\n-- \nbrian m. carlson (he/him or they/them)\nHouston, Texas, US\n"}]}