On 2021-04-02 at 00:49:50, Peng Yu wrote: > https://github.com/bayandin/chromedriver > > It seems that the above repo is a mirror of one particular > subdirectory of the main chromium repository > https://chromium.googlesource.com/chromium/src/ > > https://chromium.googlesource.com/chromium/src/+/master/chrome/test/chromedriver/ > > I don't know how a repo can be partially cloned. Could anybody let me > know how this is done? Thanks. There isn't a way to clone just a single directory of a repository. The protocol doesn't consider that, and even if you could get such a clone to happen, it would be considered corrupt and a lot of things would be broken. Partial clone can be used to do something similar, but not completely the same. In such a case, you download stub objects that are filled in by a connection to the server on demand. What is most likely to have happened is that someone took a script that extracts the commits that touch a particular directory and created a new, entirely different repository and synthesized commits there with the same commit metadata. The two repositories are likely completely independent in terms of histories. Sorry there isn't a magic cool explanation for what's going on here, but it really is essentially a copy-and-paste into a different repo. -- brian m. carlson (he/him or they/them) Houston, Texas, US
Attachment:
signature.asc
Description: PGP signature