git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Clone from shallow bundle bug

From
PSPhillip Susi <psusi@ubuntu.com>
Date
Apr 2, 2015, 01:26 UTC
Message-ID
<551C9ADA.50404@ubuntu.com>
In-Reply-To
<CACsJy8Cew0t9EZ5aVSCa-BehWz+ABRhDbtLR2cJ2K9c38QeGsA@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 04/01/2015 08:33 PM, Duy Nguyen wrote:
Show 6 quoted lines
> OK two additional options on top of what we already have:
> 
> - save .have and add extra prerequisite SHA-1. - create a bundle
> that does not hit shallow boundary in the first place, roughly
> speaking it's "max depth minus one". This one does not have extra
> .have or prerequisites

Huh? If it is one less deep that doesn't help: the new clone will still be missing history. AFAICS, the only way to keep the new clone kosher is for it to have a .git/shallow file that identifies it as a shallow clone so that history walks stop short instead of complaining about the missing history.

Thus, all that is needed is for the clone, when it notices that
history is missing, is to create the shallow file instead of erroring
out, telling you to fsck yourself, and rudely deleting the new clone.
 It is one thing to tell you that there is missing history, but quite
another to delete the repository it just created due to it missing
history.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCgAGBQJVHJraAAoJENRVrw2cjl5RABEH/RW+J5eFNRL80qMVSSnYI4Wb RjCb5Lb1pp4PBQtGK6yJ/7lzDYptAN6aLcpMVrGiyIIJDm7KfZ6rGvhUegn37ImH dCelZs+XHeR1dVd05Lbn9FGgB3mg873JOb5+i/hMuuudrXhNjRy6hhFGBnVulpPP lySfaPMscbSH7lzqr1zxgdu4GzRLlLPzKv1ojiWGyy97iRAsN6bRy6I1/wsddKMn hESUlv7AdTNQxu3b3NsLGS20a9QHMpKjBxBLvOYE6ftr4yyHMkxum/+BnoASY2UB h5LenKnQzRwFNGiw1BDeQESqYDXpQ4yA7lpd91gsINwgVsRqg82iSen9/fszzq0= =shT5 -----END PGP SIGNATURE-----

Previous: Duy NguyenNext: Duy Nguyen
Message 10 of 16 in “Clone from shallow bundle bug”
  1. Phillip SusiMar 31, 2015
  2. Junio C HamanoMar 31, 2015
  3. Phillip SusiApr 1, 2015
  4. Junio C HamanoApr 1, 2015
  5. Duy NguyenApr 1, 2015
  6. Phillip SusiApr 1, 2015
  7. Junio C HamanoApr 1, 2015
  8. Duy NguyenApr 2, 2015
  9. Duy NguyenApr 2, 2015
  10. Phillip SusiApr 2, 2015
  11. Duy NguyenApr 1, 2015
  12. Phillip SusiApr 1, 2015
  13. Duy NguyenApr 1, 2015
  14. Phillip SusiApr 1, 2015
  15. Duy NguyenApr 1, 2015
  16. Phillip SusiApr 1, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.