Re: problem with file mode
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jun 8, 2009, 14:50 UTC
- Message-ID
- <4A2D251E.9030305@viscovery.net>
- In-Reply-To
- <20090608135709.GC28101@sigill.intra.peff.net>
Jeff King schrieb:
Show 9 quoted lines
> On Mon, Jun 08, 2009 at 04:49:44PM +0300, Andrew Romanenco wrote: >> true - B is Fat > > Then you probably want to: > > git config core.filemode false > > on B. Though I thought we automagically tested whether the filesystem > supported executable bits when creating the repository.
We do. Our test basically:
lstat() chmod(st_mode ^ S_IXUSR) lstat()
but Linux (Andrew said he's on Ubuntu) keeps the mode bits that user-space requested with chmod() in the cache long enough that the subsequent lstat() call sees what it just requested. So, our test doesn't notice that the x-bit is not written to the filesystem.
:-(
-- Hannes