git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Andrew Romanenco
Message 6 of 6 in “problem with file mode”
  1. Andrew RomanencoJun 8, 2009
  2. Jeff KingJun 8, 2009
  3. Andrew RomanencoJun 8, 2009
  4. Jeff KingJun 8, 2009
  5. Andrew RomanencoJun 8, 2009
  6. Johannes SixtJun 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.