{"thread":{"id":"2282","subject":"Another problem with not existing directories","startedAt":"2005-10-31T17:20:34Z","lastAt":"2005-10-31T21:38:30Z","messageCount":5,"participants":["Marcel Holtmann","Linus Torvalds","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"10858","messageId":"1130779234.5848.15.camel@blade","threadId":"2282","inReplyTo":null,"subject":"Another problem with not existing directories","fromName":"Marcel Holtmann","fromEmail":"marcel@holtmann.org","sentAt":"2005-10-31T17:20:34Z","receivedAt":"2005-10-31T17:20:34Z","isPatch":false,"sender":{"key":"marcel@holtmann.org","avatar":null},"body":"Hi guys,\n\nI think there exists another problem with git-unpack-objects if the\nsub-directory in \"objects\" doesn't exists.\n\n# cg-push master\nupdating 'refs/heads/master'\n  from 581c1b14394aee60aff46ea67d05483261ed6527\n  to   197c190b0b00689074c03fc3ebcfa114dbed1d73\nPacking 37 objects\nUnpacking 37 objects\nunable to write sha1 filename ./objects/dc/59cd72edc7bc6169c2c9c073c86483f9318e7c: No such file or directoryfatal: failed to write object\nfatal: git-unpack-objects exited with error code 128\n\nIn this case the directory \"objects/dc\" doesn't exists. Creating it\nfixes the problem, but I think they should be created on demand.\n\nRegards\n\nMarcel\n"},{"id":"10859","messageId":"Pine.LNX.4.64.0510310929361.27915@g5.osdl.org","threadId":"2282","inReplyTo":"1130779234.5848.15.camel@blade","subject":"Re: Another problem with not existing directories","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-10-31T17:35:56Z","receivedAt":"2005-10-31T17:35:56Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Mon, 31 Oct 2005, Marcel Holtmann wrote:\n> \n> I think there exists another problem with git-unpack-objects if the\n> sub-directory in \"objects\" doesn't exists.\n\nAre you sure you just don't have an old version of git on the other end?\n\nAs far as I know, git-unpack-objects will use the bog-standard \n\"write_sha1_file()\" which already knows how to create missing \nsubdirectories.\n\nThis _sounds_ like the other end has two different versions of git, and \nwhen you \"push\" to it, it executes an old version, but then you have a \nnewer version somewhere that created the sparsely-populated object \ndirectory in the first place.\n\nThis happens (for example) if you have installed an older version of git \nthrough an rpm (say, the one that comes from Fedora Core: 0.99.8) and you \nhave that in /usr/bin, but then you have a newer version that you've built \nand installed yourself in your ~/bin/ directory.\n\nIf you have your PATH being set in your .bashrc, it won't trigger with a\nnon-interactive login, so you'll use the /usr/bin/ version when pushing, \nbut then when you log in interactively to a shell, you'll use the ~/bin \none (or the other way around, I'm easily confused by the bash config file \nrules ;)\n\n\t\tLinus\n"},{"id":"10860","messageId":"1130780772.5848.32.camel@blade","threadId":"2282","inReplyTo":"Pine.LNX.4.64.0510310929361.27915@g5.osdl.org","subject":"Re: Another problem with not existing directories","fromName":"Marcel Holtmann","fromEmail":"marcel@holtmann.org","sentAt":"2005-10-31T17:46:12Z","receivedAt":"2005-10-31T17:46:12Z","isPatch":false,"sender":{"key":"marcel@holtmann.org","avatar":null},"body":"Hi Linus,\n\n> > I think there exists another problem with git-unpack-objects if the\n> > sub-directory in \"objects\" doesn't exists.\n> \n> Are you sure you just don't have an old version of git on the other end?\n\nthis might be possible, but then it is an old git on kernel.org. I never\ninstalled any git by myself on it.\n\nRegards\n\nMarcel\n"},{"id":"10863","messageId":"7vk6ftil38.fsf@assigned-by-dhcp.cox.net","threadId":"2282","inReplyTo":"1130780772.5848.32.camel@blade","subject":"Re: Another problem with not existing directories","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-10-31T18:43:07Z","receivedAt":"2005-10-31T18:43:07Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Marcel Holtmann <marcel@holtmann.org> writes:\n\n>> Are you sure you just don't have an old version of git on the other end?\n>\n> this might be possible, but then it is an old git on kernel.org. I never\n> installed any git by myself on it.\n\nI just tried this myself; master.kernel.org seems to have\n0.99.8f in /usr/bin/, which explains this symptom.\n"},{"id":"10885","messageId":"1130794710.31561.3.camel@blade","threadId":"2282","inReplyTo":"7vk6ftil38.fsf@assigned-by-dhcp.cox.net","subject":"Re: Another problem with not existing directories","fromName":"Marcel Holtmann","fromEmail":"marcel@holtmann.org","sentAt":"2005-10-31T21:38:30Z","receivedAt":"2005-10-31T21:38:30Z","isPatch":false,"sender":{"key":"marcel@holtmann.org","avatar":null},"body":"Hi Junio,\n\n> >> Are you sure you just don't have an old version of git on the other end?\n> >\n> > this might be possible, but then it is an old git on kernel.org. I never\n> > installed any git by myself on it.\n> \n> I just tried this myself; master.kernel.org seems to have\n> 0.99.8f in /usr/bin/, which explains this symptom.\n\nso as soon as kernel.org switches to 0.99.9 everything should be fine\nagain. That's great.\n\nRegards\n\nMarcel\n"}]}