Download and index the packfile
Connect to the remote if it hasn't been done yet, negotiate with the remote git which objects are missing, download and index the packfile.
The .idx file will be created and both it and the packfile with be renamed to their final name.
0 or an error code