{"thread":{"id":"278","subject":"Old \"sparse\" archive converted..","startedAt":"2005-04-24T01:25:05Z","lastAt":"2005-04-24T19:53:52Z","messageCount":3,"participants":["Linus Torvalds","Jeff Garzik"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"1458","messageId":"Pine.LNX.4.58.0504231815350.2344@ppc970.osdl.org","threadId":"278","inReplyTo":null,"subject":"Old \"sparse\" archive converted..","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-04-24T01:25:05Z","receivedAt":"2005-04-24T01:25:05Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\nOk, I expanded on \"convert-cache\" quite a bit, to the point where it could\nactually re-write \"commit\" and \"tree\" objects entirely, at which point it\nnow became possible to convert the broken old sparse archive that had the\nwrong date format in its commit objects, and had the old flat-file format\nfor the \"tree\" objects.\n\nI updated the tree at\n\n\tkernel.org:/pub/linux/kernel/people/torvalds/sparse.git\n\nto be this modern-format tree that fsck-cache no longer complains about.\n\nIf anybody is keeping an old-format tree around, I'll just warn you that \nI'm not going to necessarily guarantee that git will be able to read it in \nthe future, so you should replace it with the modern one (which should \njust be a matter of either deleting the old one and getting a new copy, or \nyou could do a\n\n\tconvert-cache $(cat .git/HEAD)\n\techo ..result.. > .git/HEAD\n\tgit-prune-script\n\tread-tree $(cat .git/HEAD)\n\tupdate-cache --refresh\n\tfsck-cache --unreachable $(cat .git/HEAD)\n\nwhich _should_ get you a clean tree with a top commit with the name\nf765413f020fd2c97c22716320dc96b33cda7c43 if everything went right.\n\nI'm considering turning on SHA1 validation by default when reading\nobjects, just because it's the right thing to do from a \"find any fs\ncorruption early\" angle, and it should be fairly cheap. That will make old \npre-conversion trees no longer work.\n\n\t\t\tLinus\n"},{"id":"1495","messageId":"426B2D82.5000906@pobox.com","threadId":"278","inReplyTo":"Pine.LNX.4.58.0504231815350.2344@ppc970.osdl.org","subject":"Re: Old \"sparse\" archive converted..","fromName":"Jeff Garzik","fromEmail":"jgarzik@pobox.com","sentAt":"2005-04-24T05:24:18Z","receivedAt":"2005-04-24T05:24:18Z","isPatch":false,"sender":{"key":"jgarzik@pobox.com","avatar":null},"body":"Linus Torvalds wrote:\n> Ok, I expanded on \"convert-cache\" quite a bit, to the point where it could\n> actually re-write \"commit\" and \"tree\" objects entirely, at which point it\n> now became possible to convert the broken old sparse archive that had the\n> wrong date format in its commit objects, and had the old flat-file format\n> for the \"tree\" objects.\n> \n> I updated the tree at\n> \n> \tkernel.org:/pub/linux/kernel/people/torvalds/sparse.git\n\nAny chance you could copy it to\n\n\t/pub/scm/linux/kernel/git/torvalds/sparse.git\n\n?\n\n\tJeff\n\n\n"},{"id":"1540","messageId":"Pine.LNX.4.58.0504241252360.15879@ppc970.osdl.org","threadId":"278","inReplyTo":"426B2D82.5000906@pobox.com","subject":"Re: Old \"sparse\" archive converted..","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-04-24T19:53:52Z","receivedAt":"2005-04-24T19:53:52Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Sun, 24 Apr 2005, Jeff Garzik wrote:\n> \n> Any chance you could copy it to\n> \n> \t/pub/scm/linux/kernel/git/torvalds/sparse.git\n\nDone.\n\n\t\tLinus\n"}]}