{"thread":{"id":"2357","subject":"Re: [GIT PATCH] SCSI updates for 2.6.14","startedAt":"2005-11-05T19:32:47Z","lastAt":"2005-11-05T19:32:47Z","messageCount":1,"participants":["Linus Torvalds"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"11171","messageId":"Pine.LNX.4.64.0511051119080.3316@g5.osdl.org","threadId":"2357","inReplyTo":"1131216913.3614.15.camel@mulgrave","subject":"Re: [GIT PATCH] SCSI updates for 2.6.14","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-11-05T19:32:47Z","receivedAt":"2005-11-05T19:32:47Z","isPatch":true,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Sat, 5 Nov 2005, James Bottomley wrote:\n>\n> On Sat, 2005-11-05 at 10:42 -0800, Linus Torvalds wrote:\n> > James: what's your umask on master? Maybe you've set it to 0077, from the \n> > default 0002?\n> \n> I set it to 0022 ... could that be the problem?\n\nNo, 0022 should still be perfectly fine, and should result in drwxr-xr-x, \nnot your strange things.\n\nLooking at things, I can't imagine it being anything else than a cpio bug \n(or misfeature - I don't know where cpio _could_ get the permissions for \nthe intermediate directories from). But that implies that the system git \nshouldn't have mattered, and if you used \"git clone -l\" with your old git \nit should have done exactly the same thing.\n\nJunio: I just confirmed this. Do a\n\n\tgit clone -l src dst\n\nwith any git, and you'll end up with\n\n\t...\n\tdrwx------  2 torvalds torvalds 4096 Nov  5 11:22 de\n\tdrwx------  2 torvalds torvalds 4096 Nov  5 11:22 df\n\tdrwx------  2 torvalds torvalds 4096 Nov  5 11:22 e0\n\t...\n\tdrwx------  2 torvalds torvalds 4096 Nov  5 11:22 ff\n\tdrwxrwxr-x  2 torvalds torvalds 4096 Nov  5 11:22 info\n\tdrwxrwxr-x  2 torvalds torvalds 4096 Nov  5 11:22 pack\n\nregardless of umask.\n\nHappens with both cpio 2.5 and 2.6. \n\nI _think_ it's this:\n\n\t...\n            find objects -type f -print |\n            cpio -puamd$l \"$D/.git/\" || exit 1\n\t...\n\nand I suspect that if you remove the \"-type f\" it will just work (because \nit will get the directory permissions from the source). But cpio is black \nmagic to me (very un-unixy feel to it, I'd guess it comes from some odd \nother pre-unix OS).\n\n\t\t\tLinus\n"}]}