diff options
author | Jeremy Stribling <strib@alum.mit.edu> | 2017-10-02 14:31:37 -0700 |
---|---|---|
committer | Jeremy Stribling <strib@alum.mit.edu> | 2017-10-05 19:59:25 -0700 |
commit | 39853aab188cb0b7e7c31c99b82149684df9a33c (patch) | |
tree | b6b324fd90f60633035ee35e3cb958ee86453b4e /worktree_windows.go | |
parent | a99c1291da1bf5c4ae8fada815231922f106bb70 (diff) | |
download | go-git-39853aab188cb0b7e7c31c99b82149684df9a33c.tar.gz |
remote: add the last 100 commits for each ref in haves list
If the local ref is not an ancestor of the remote ref being fetched,
then when we send an UploadPack request with that local ref as one of
the Haves, the remote will not recognize it, and will think we are
asking for the entire history of the repo, even if there's a common
ancestor.
To do this right, we need to support the multi-ack protocol so we can
negotiate a common commit. That's hard though; this is a quick fix
just to include the previous 100 commits for each local ref in the
Haves list, and hope that one of them is the common commit.
Diffstat (limited to 'worktree_windows.go')
0 files changed, 0 insertions, 0 deletions