git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Johannes Sixt <j.sixt@viscovery.net>
To: Jeff King <peff@peff.net>
Cc: Andrew Romanenco <andrew@romanenco.com>, git@vger.kernel.org
Subject: Re: problem with file mode
Date: Mon, 08 Jun 2009 16:50:06 +0200	[thread overview]
Message-ID: <4A2D251E.9030305@viscovery.net> (raw)
In-Reply-To: <20090608135709.GC28101@sigill.intra.peff.net>

Jeff King schrieb:
> 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

      parent reply	other threads:[~2009-06-08 14:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-08  9:09 problem with file mode Andrew Romanenco
2009-06-08 12:30 ` Jeff King
2009-06-08 13:49   ` Andrew Romanenco
2009-06-08 13:57     ` Jeff King
2009-06-08 14:08       ` Andrew Romanenco
2009-06-08 14:50       ` Johannes Sixt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A2D251E.9030305@viscovery.net \
    --to=j.sixt@viscovery.net \
    --cc=andrew@romanenco.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).