{"thread":{"id":"19741","subject":"problem with file mode","startedAt":"2009-06-08T09:09:23Z","lastAt":"2009-06-08T14:50:06Z","messageCount":6,"participants":["Andrew Romanenco","Jeff King","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"115787","messageId":"18e14dc30906080209m9eceb6ft81c77ea0345b30e3@mail.gmail.com","threadId":"19741","inReplyTo":null,"subject":"problem with file mode","fromName":"Andrew Romanenco","fromEmail":"andrew@romanenco.com","sentAt":"2009-06-08T09:09:23Z","receivedAt":"2009-06-08T09:09:23Z","isPatch":false,"sender":{"key":"andrew@romanenco.com","avatar":"https://gravatar.com/avatar/5fb1c61be7b3554c3aac3c6f81d4171f563898360ab0fc5bb14865e2b014b12c?d=mp&s=160"},"body":"Hello\n\nI have problem with cloning git repo\n\nBoth stations are ubuntu 8.10\nAnd I have repo with text files on station A\nWhen I do git clone to station B all files become executable 755\nAnd git status show that all files are modified, diff shows mode change\n\ncould you help me with this issue?\n\nthanks\nAndrew\n"},{"id":"115801","messageId":"20090608123006.GF13775@coredump.intra.peff.net","threadId":"19741","inReplyTo":"18e14dc30906080209m9eceb6ft81c77ea0345b30e3@mail.gmail.com","subject":"Re: problem with file mode","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-06-08T12:30:06Z","receivedAt":"2009-06-08T12:30:06Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Jun 08, 2009 at 12:09:23PM +0300, Andrew Romanenco wrote:\n\n> Both stations are ubuntu 8.10\n> And I have repo with text files on station A\n> When I do git clone to station B all files become executable 755\n> And git status show that all files are modified, diff shows mode change\n\nWhat filesystem is station B running? Is it something that actually has\na proper executable bit (i.e., not FAT or similar)?\n\n-Peff\n"},{"id":"115805","messageId":"18e14dc30906080649y2efa7facv1109fcd797614d27@mail.gmail.com","threadId":"19741","inReplyTo":"20090608123006.GF13775@coredump.intra.peff.net","subject":"Re: problem with file mode","fromName":"Andrew Romanenco","fromEmail":"andrew@romanenco.com","sentAt":"2009-06-08T13:49:44Z","receivedAt":"2009-06-08T13:49:44Z","isPatch":false,"sender":{"key":"andrew@romanenco.com","avatar":"https://gravatar.com/avatar/5fb1c61be7b3554c3aac3c6f81d4171f563898360ab0fc5bb14865e2b014b12c?d=mp&s=160"},"body":"true - B is Fat\n\nOn Mon, Jun 8, 2009 at 3:30 PM, Jeff King<peff@peff.net> wrote:\n> On Mon, Jun 08, 2009 at 12:09:23PM +0300, Andrew Romanenco wrote:\n>\n>> Both stations are ubuntu 8.10\n>> And I have repo with text files on station A\n>> When I do git clone to station B all files become executable 755\n>> And git status show that all files are modified, diff shows mode change\n>\n> What filesystem is station B running? Is it something that actually has\n> a proper executable bit (i.e., not FAT or similar)?\n>\n> -Peff\n>\n\n\n\n-- \nBest regards,\nAndrew Romanenco\n\n        Software developer\n        Microsoft Certified Professional (win2k)\n        Microsoft Certified Database Administrator\n        Sun Certified Java Programmer\n        Sun Certified Web Component Developer\n        Oracle Database 10g Administrator Certified Associate\n\n        mailto:andrew@romanenco.com\n        http://www.romanenco.com\n"},{"id":"115807","messageId":"20090608135709.GC28101@sigill.intra.peff.net","threadId":"19741","inReplyTo":"18e14dc30906080649y2efa7facv1109fcd797614d27@mail.gmail.com","subject":"Re: problem with file mode","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-06-08T13:57:09Z","receivedAt":"2009-06-08T13:57:09Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Jun 08, 2009 at 04:49:44PM +0300, Andrew Romanenco wrote:\n\n> true - B is Fat\n\nThen you probably want to:\n\n  git config core.filemode false\n\non B. Though I thought we automagically tested whether the filesystem\nsupported executable bits when creating the repository. Did you create\nthe repository on a different filesystem and then move it to FAT, or did\nyou directly clone to FAT?\n\n-Peff\n"},{"id":"115808","messageId":"18e14dc30906080708x77933794r1260c3bd6954700e@mail.gmail.com","threadId":"19741","inReplyTo":"20090608135709.GC28101@sigill.intra.peff.net","subject":"Re: problem with file mode","fromName":"Andrew Romanenco","fromEmail":"andrew@romanenco.com","sentAt":"2009-06-08T14:08:33Z","receivedAt":"2009-06-08T14:08:33Z","isPatch":false,"sender":{"key":"andrew@romanenco.com","avatar":"https://gravatar.com/avatar/5fb1c61be7b3554c3aac3c6f81d4171f563898360ab0fc5bb14865e2b014b12c?d=mp&s=160"},"body":"I have create repo on ext3 and cloned it to fat\n\nthak you for your help\n\nOn Mon, Jun 8, 2009 at 4:57 PM, Jeff King<peff@peff.net> wrote:\n> On Mon, Jun 08, 2009 at 04:49:44PM +0300, Andrew Romanenco wrote:\n>\n>> true - B is Fat\n>\n> Then you probably want to:\n>\n>  git config core.filemode false\n>\n> on B. Though I thought we automagically tested whether the filesystem\n> supported executable bits when creating the repository. Did you create\n> the repository on a different filesystem and then move it to FAT, or did\n> you directly clone to FAT?\n>\n> -Peff\n>\n\n\n\n-- \nBest regards,\nAndrew Romanenco\n\n        Software developer\n        Microsoft Certified Professional (win2k)\n        Microsoft Certified Database Administrator\n        Sun Certified Java Programmer\n        Sun Certified Web Component Developer\n        Oracle Database 10g Administrator Certified Associate\n\n        mailto:andrew@romanenco.com\n        http://www.romanenco.com\n"},{"id":"115811","messageId":"4A2D251E.9030305@viscovery.net","threadId":"19741","inReplyTo":"20090608135709.GC28101@sigill.intra.peff.net","subject":"Re: problem with file mode","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2009-06-08T14:50:06Z","receivedAt":"2009-06-08T14:50:06Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Jeff King schrieb:\n> On Mon, Jun 08, 2009 at 04:49:44PM +0300, Andrew Romanenco wrote:\n>> true - B is Fat\n> \n> Then you probably want to:\n> \n>   git config core.filemode false\n> \n> on B. Though I thought we automagically tested whether the filesystem\n> supported executable bits when creating the repository.\n\nWe do. Our test basically:\n\n   lstat()\n   chmod(st_mode ^ S_IXUSR)\n   lstat()\n\nbut Linux (Andrew said he's on Ubuntu) keeps the mode bits that user-space\nrequested with chmod() in the cache long enough that the subsequent\nlstat() call sees what it just requested. So, our test doesn't notice that\nthe x-bit is not written to the filesystem.\n\n:-(\n\n-- Hannes\n"}]}