Skip to content

Shallow clone fixes

Alexandre Julliard git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fetch-pack: Properly remove the shallow file when it becomes empty.fetch-pack.c+1 -10 replies
2/5upload-pack: Check for NOT_SHALLOW flag before sending a shallow to the client.upload-pack.c+1 -10 replies
3/5get_shallow_commits: Avoid memory leak if a commit has been reached already.shallow.c+3 -14 replies
4/5git-fetch: Reset shallow_depth before auto-following tags.git-fetch.sh+2 -00 replies
5/5fetch-pack: Do not fetch tags for shallow clones.fetch-pack.c+2 -12 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/5] Shallow clone fixes

This series fixes a number of small problems in the shallow clone support in pu. After that it seems to work fairly well for me.

The one remaining problem I see is that a git-fetch to deepen the tree doesn't take into account the commits that the client already has. For instance, on the Wine tree, a "git-clone --depth 1" downloads 4655 objects, and a "git-clone --depth 2" downloads 4660, so I'd expect that after the depth 1 clone a "git-fetch --depth 2" would only have to download 5 objects, but currently it downloads 4650 again.

Signature · 1 line
Alexandre Julliard