Skip to content

Unconfuse git clone when two branches at are HEAD.

Andreas Krey git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3upload-pack: send the HEAD informationupload-pack.c+6 -214 replies
2/3connect.c: save symref info from server capabilitiesconnect.c+9 -23 replies
3/3clone: test the new HEAD detection logict/t5601-clone.sh+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Unconfuse git clone when two branches at are HEAD.

Ok, here are some patches that make git actually
check out the current remote branch when cloning.

Up to now this failed when there were two branches that pointed to the HEAD commit of the remote repo, and git clone would sometimes choose the wrong one as the HEAD ref isn't transmitted in all transport.

Stuff the HEAD ref into the capability list (assuming refs are clean enough to do that w/o escaping), and read them out on the other side. All other things were thankfully already in place.

Two of the patches have Junio in the From as they are essentially his.

Andreas