When performing a git clone, git goes through the stages
Receiving objects
Resolving deltas
Checking out files
I would expect all of the network activity to be during Receiving objects
, then Resolving deltas
to be entirely local (as explained here What is git actually doing when it says it is "resolving deltas"?) but actually there is still a connection open.
I can tell this in two ways:
- Wireshark shows no activity during
Resolving deltas
then there are a few packets exchanged after along with closing the connection. - Sometimes I see a connection closed by remote host during a long
Resolving deltas
step.
So what I'm interested in knowing is why git needs this connection to stay open during Resolving deltas
? Is it needed after that for some reason (e.g. a hook)?
(note: this may depend on whether you are using https or ssh)