clone: caveat note on converting partial clone
PATCH 1/1 clone: caveat note on converting partial clone
Currently partial clones can't be converted into full clones, because there is an issue where the remote can't send all missing objects required.
---
This patch is based on "clone: document partial clone section" by Teng Long [1].
[1]:
https://lore.kernel.org/git/[email protected]/
Documentation/git-clone.txt | 9 +++++++++ 1 file changed, 9 insertions(+)
Documentation/git-clone.txt +9 -0
@@ -377,6 +377,10 @@ only reading commits. `git log -p -- <path>` will download blobs to generate the patch output and git log --raw will download all blobs that changed at recent commits in order to compute renames. +It is currently not possible to convert partial clones into full clones, +because there is an issue where the remote can't send all missing +objects required. See discussion at [1]. + :git-clone: 1 include::urls.txt[]
@@ -417,6 +421,11 @@ $ cd my-linux $ git clone --bare -l /home/proj/.git /pub/scm/proj.git ------------ +FOOTNOTES +--------- + +[1]: https://lore.kernel.org/git/[email protected]/T/#u + GIT ---
Signature · 1 line
2.25.1
Quoted 11 lines · Bagas Sanjaya
Currently partial clones can't be converted into full clones, because there is an issue where the remote can't send all missing objects required.
Signed-off-by Bagas Sanjaya <[email protected]>---
This patch is based on "clone: document partial clone section" by Teng Long [1].
Wouldn't:
git -c fetch.negotiationAlgorithm=noop fetch ...
work?
IMHO that is not ideal, and I would like to see it work even when we provide "have" lines to the server. But if we are going to tell users something in the documentation, pointing them to this technique is probably much more helpful than saying "it can't be done".
-Peff
Quoted 16 lines · Jeff King
Quoted 11 lines · Bagas Sanjaya
Currently partial clones can't be converted into full clones, because there is an issue where the remote can't send all missing objects required.
Signed-off-by Bagas Sanjaya <[email protected]>---
This patch is based on "clone: document partial clone section" by Teng Long [1].Wouldn't:
Quoted 8 lines
git -c fetch.negotiationAlgorithm=noop fetch ...
work?
IMHO that is not ideal, and I would like to see it work even when we provide "have" lines to the server. But if we are going to tell users something in the documentation, pointing them to this technique is probably much more helpful than saying "it can't be done".
Any workaround is better than none.
At minimum, I would expect a summary of the discussion instead of a pointer to a mailing list thread.
Thanks,
-Stolee