I'm using repo to download android source code.
I noticed most of the projects are downloaded with the remote compressing of objects into a pack file and then simply getting the pack file and extracting the pack contents. With this, I get .pack and .idx files in .repo/objects/pack/ folder. There aren't any other folders inside objects folder. And when downloading this pack file, if connection breaks , then it is not resumable .
I have also noticed very few projects actually getting downloaded without the remote compressing objects into pack file. For these I don't have the .pack and .idx files. But many individual folders and files inside those folders are created inside the objects folder. I have a few questions regarding this approach.
Will this clone resume when interrupted ? I'm not asking about single file object resume capability. But when interrupted and attempted to redownload, will the already downloaded files be skipped ?? And how is this affected with normal clone and shallow clone ?
Can I request the server to not compress the objects to a pack file while git cloning. If it depends on server, does github and aosp support this?
rsync --partial
in a loop (e.g. downloading a git-bundle). This will completely remove the necessity for restarting the interrupted download.